We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Workflow Set Values from scratchpad

James Michaels1
Giga Expert

This is probably a simple syntax problem but I can't seem to find an answer anywhere. If I am using the Set Values activity to change some fields on the current record is there a way to use scratchpad values? I've tried using just workflow.scratchpad.variable as well as javascript: workflow.scratchpad.variable and javascript:new workflow.scratchpad.variable. The only thing that does anything is workflow.scratchpad.variable which just puts that text in the field. I can probably just use the run script activity but that seems not to be best practice for this. In case my description isn't clear I attached a picture that depicts the three ways I've tried this. Any help would be appreciated.

1 ACCEPTED SOLUTION

patrickdeca
ServiceNow Employee

James,



You need to use ${workflow.scratchpad.<whatever you name>}


View solution in original post

1 REPLY 1

patrickdeca
ServiceNow Employee

James,



You need to use ${workflow.scratchpad.<whatever you name>}