Hi,
I want to get the List of Reporting persons Usernames by giving Supervisor Username as rule input. Based on below screenshot the code is working fine but the function usersearch() is 3rd party plugins so need to replace that with Appian cloud function.
Kindly suggest the which need to replace usersearch() function for fetching the same data like below
Discussion posts and replies are publicly visible
Hi ashwinir5622 - I have a solution for this which may have performance impact while running the rule. We can fetch all the users from the group and compare the user's supervisor name from the ri value.
ashwinir5622 said:but the function usersearch() is 3rd party plugins
This function is in the Personalization Utilities plug-in, which is a very common, well-known and well-supported one. Using plug-ins in Appian is standard practice. Why would you seek to replace good-working functionality with something that's potentially performance-damaging, just to avoid using a plug-in?
if you have list of users , you can try this
a!localVariables( local!users:{"abc","cd"}, a!forEach( items: local!users, expression: if( user(fv!item,"supervisorName")="john", fv!item, null ) ))