Flowdesigner to get watchlist user and requestor manager name.

User267
Tera Contributor

So i created a group with a user and manager. This needs to be visible when a requester open catalog form then in ritm manager name should be visible.

I have written script till here in flow designer.

 

var nameString = '';
var gr = newGlideRecord('sys_user'); gr.addEncodedQuery('alias id'); gr.query();
while(gr.next())
{
nameString += gr.name +',';
} nameString=nameString.substring(0,nameString.length-1);
return nameString.toString();

 

This script is to get one person whom I added in watchlist . I need for requestor manager. 

3 REPLIES 3

sushantmalsure
Mega Sage
Mega Sage

What is your business requirement? tell us the complete use case, seems this is incomplete information and hard to understand what you are actually trying to do.

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

I written a code for a person (alias id) he will be visible in my watchlist, now I need a script for requestor manager name in that watchlist . It means requestor manager should come in that watchlist

whenever a requestor open that catalog form then in ritm watchlist his manager name should come. It needs to be done using script in flow, I have done for one person whom I need in watchlist, now I need for manager