
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 10:46 AM
On my personal dev instance, I noticed that the Ticket Fields widget shows "variables" for an Incident that was created via the Password Reset record producer.
Can someone advise on where this data is stored (ie. where is the relationship/link between the incident and the record producer stored) or how this is achieved?
I was able to trace it to this line of code in the widget's Server Script data.variables = $sp.getVariablesArray(); but was unable to find documentation on https://developer.servicenow.com/app.do#!/api_doc?v=istanbul&id=c_GlideSPScriptableScopedAPI for the getVariablesArray() function.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 05:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 04:10 PM
Hi Nolan,
The screenshot I provided is from this out-of-box widget: https://[instance].service-now.com/sp_config?id=widget_editor&sys_id=5736bf52cb30020000f8d856634c9c2...
If you no longer have it or want me to paste the code widget here for you, let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 04:33 PM
Nia,
Thanks for quick response. I am able to see the out of box widget in fact that is what I am using but not sure how the variables will get populated from a newly created record producer. The Ticket Fields widget is working when I submit a password reset like you stated but can't get it to work on a record producer I just created.
Hope that makes sense.
Thanks
What is displayed when using my new record producer using the Ticket Fields widget
What is displayed with password reset record producer with the same Ticket Fields widget on incident

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 06:24 AM
HI Nolan,
I noticed that a record producer for an RITM is does not generate any records in the sc_item_produced_record table. This may be why we're not seeing the variables there.
But I don't have a definite answer for you as I'm still not sure about what magic function $sp.getVariablesArray() does. As I mentioned in my original post, I couldn't find documentation on the function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 08:22 AM
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 03:42 AM
Hi
Did anyone ever get to the bottom of this? I am having the same issue
Thanks
Ryan