We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

variable set for RP

Rosy14
Kilo Sage

how to map variable set variables to table field in RP? I tried hardcoded... not working. Is is really possible to do?

 

current.u_first_name = producer.first_name;
5 REPLIES 5

Anurag Tripathi
Mega Patron

Hi,

You can use it like below

current.u_first_name = producer.<variableSet_name>.<varibale_name>

 

-Anurag

Sarika S Nair1
Kilo Sage

Hi @Rosy14 

Use  current.u_first_name = producer.<variablesetname>.<variablename> ; for getting variable set variable in script 

Hope it helps

Dr Atul G- LNG
Tera Patron

Try like

LearnNGrowAtul_0-1707401651490.png

 

 

@Rosy14 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Rosy14
Kilo Sage

getting error 

Method returned an object of type which is not allowed in scope sn_cd