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.

Create change request Declarative Action. How to set field values?

pratik23
Tera Contributor

Hi ,

When I click on create change Request Declarative Action on Sow for incident Record it copies the short description and Description to the change Request form. In similar way I want to copy the INC number as well to be set as parent of change Request. 
I know there is Incident fixed by change and Change Request field on incident table but ask is i should set parent field on change Form as the incident number.

pratik23_0-1754647011867.png

 

1 REPLY 1

abirakundu23
Giga Sage

Hi @pratik23 ,

Yes, you can set the parent field on the Change Request to point to the Incident record that triggered the Declarative Action that you have highlighted.


You're using a Declarative Action on the Incident form and trigger this Action launches a Change Request form.

You want the Incident record to be set in the parent field on the new Change Request (i.e., change_request.parent = incident.sys_id).


Please mark helpful and correct answer if it's worthy for you.