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.

Copy variable editor data to description

si21
Tera Guru

Hi experts,

Can we update description field on case form with variable editor data when record is inserted?

si21_0-1718720728968.png

 

 

TIA

 

2 REPLIES 2

Unique45
Mega Sage
Mega Sage

Hello @si21 ,

Add the following code in the script section of Record Producer.

 

new sn_hr_le.hr_ActivityUtils().createCaseFromProducer(current, producer, cat_item.sys_id);

 

 

Unique45_0-1718721634314.png

 

After adding this code to the script section of the Record Producer, all variables and their corresponding values were mapped into the description field.

 
Please mark correct/helpful if this helps you!

Community Alums
Not applicable