Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to map variable set' variable value in watchList field on RITM

kumaraj
Kilo Sage

Hi Friends,

Please help me with my below requirement.

I have a list collector variable xyz in abc variable set. This variable refers sys_user table.

how can we map the users in xyz variable to watch_list field on RITM notes section (after submitting the request).

I guess we can create catelog client script on variable set and get the value of xyz variable and send to script include and then there we can map these value with watchlist.

I am unable to implement the code, so could someone please help me with the code.

Thanks

1 ACCEPTED SOLUTION

Thanks for the update Kumaraj. No worries. Below, please find the solution that I shared with you.

Create a Before business rule with Script as:

current.watch_list = current.variables.xyz;

Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

- Pradeep Sharma

View solution in original post

15 REPLIES 15

Thank you Ankur for all your time and suggestion. Yes, that way we can accurate the requirement.

I created the Business rule and add the condition that if item name is any of those 50 items name then it BR will trigger, so It will work only for those specific catalog item.

But thank you so much for giving me so many thought and idea, it really helped me to analyze the thing in better way.