How Do You Auto Populate a Reference Variable From a Script

cwolfe01
Giga Guru

I want to create a link that would direct users to our reopen ticket form, and I want to auto-populate the incident number field, which is a reference value. How would I go about accomplishing this?

 

In my script, I'm appending the following parameter to the end of the reopen ticket URL.

&sysparm_task=${incident.number}

This isn't working as I intended because when I use this method, the field is greyed out like it's populated, but nothing appears in the field itself as seen below.

Screenshot 2023-08-30 104650.png

 

1 ACCEPTED SOLUTION

JoeSD
Tera Expert

Hi cwolfe01,

 

Where will this link be presented to the user? In an email or in a record?

 

Rather than "incident.number", I would recommend trying "incident.sys_id" as your sysparam.

 

Thank you,

Joe

View solution in original post

1 REPLY 1

JoeSD
Tera Expert

Hi cwolfe01,

 

Where will this link be presented to the user? In an email or in a record?

 

Rather than "incident.number", I would recommend trying "incident.sys_id" as your sysparam.

 

Thank you,

Joe