Skip to main content
December 14, 2022
Question

To Retrieve the List Reporting persons Usernames by giving Supervisor's value as input

  • December 14, 2022
  • 3 replies
  • 0 views

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

3 replies

December 14, 2022

Hi [mention:bfd227c27aea444eb49c1c9c963d1ba5:e9ed411860ed4f2ba0265705b8793d05] - 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.

mikes0011
Brainy
December 14, 2022
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?

The Expression Guru
komalj3844
December 14, 2022

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
)
)
)