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 short description of record producer to the incident

Chirag Pathak
Tera Contributor

Hi community,
I had a requirement to add the short_description of the record producer to the incident's record producer and similarly when a incident is created with the record producer it should update the channel on the incident to self-service

1 ACCEPTED SOLUTION

Jyoti Jadhav9
Tera Guru

Hi @Chirag Pathak 

If you know the short description of the record producer then you can store this value in variable as a static.

for ex.

var sd= 'Application Software Incident';

 current.short_description = sd;

current.contact_type = 'self-service';

 

JyotiJadhav9_0-1707488990726.png

 

Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

 

Thanks & Regards

Jyoti Jadhav

View solution in original post

7 REPLIES 7

Hi @Chirag Pathak ,

 

Could you please share the snippet of the script ?

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang

 

 

Hi @Chirag Pathak, The suggestions from @swathisarang98 should work. If still its not working, would it be possible to share the code snippet?

 

Regards,

Sunil

Jyoti Jadhav9
Tera Guru

Hi @Chirag Pathak 

If you know the short description of the record producer then you can store this value in variable as a static.

for ex.

var sd= 'Application Software Incident';

 current.short_description = sd;

current.contact_type = 'self-service';

 

JyotiJadhav9_0-1707488990726.png

 

Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

 

Thanks & Regards

Jyoti Jadhav