Can i pull a variable from a form into an execution plan

johnrob18
Giga Guru

I have created a service request form, with a variety of varaibles.

 

I have also created an execution plan to create REQ/RITM/Tasks to fulfill the request.

 

I need to be able to pull values from the form into the RITM and subsequent tasks.

 

Is this possible?

2 REPLIES 2

HrishabhKumar
Kilo Sage

Hi @johnrob18 ,

Check this thread : https://www.servicenow.com/community/developer-forum/copy-catalog-variables-to-ritm-and-req-forms/m-...

 

Thanks,

Hope this helps.

If my response proves helpful please mark it helpful and accept it as solution to close this thread.

hi - i have found this solution but do not understand where to put the first scipt, it seems to imply it goes in the request item workflow. - where do i find this?

I need to pass a number of fields from the form to the RITM, do I just add these into the script?

 

I am trying to copy a location catalog variable on Request item and request form.

I have written the below code.

I have a run activity on request item workflow which is trying to set the location variable on scratchpad.

 

Run script activity on workflow.

 

johnrob18_1-1719483320856.png

 

Then I am running a after business rule on request item table to set the location variable value on request item form and request form’s filed called location.

 

 

johnrob18_2-1719483320594.png