Populate reference field on record producer URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2018 06:49 PM
I would like to use a URL to create and populate a record with predefined values. I am able to populate all fields on the new form with the exception of a reference field. I will be able to provide the number of the record associated with the reference field (i.e. INCxxxxxxx), but the field will only be populated when I supply the sys_id. Is there a way to convert the record number into the associated sys_id within the record producer URL?
Example
Works:
https://service-now.com/nav_to.do?uri=task_time_worked.do?sys_id=-1%26sysparm_query%3Dtask%3Dd25e4d22db725b048d067fda8c96191e
Does not work:
https://service-now.com/nav_to.do?uri=task_time_worked.do?sys_id=-1%26sysparm_query%3Dtask%3DTASK0191936

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2018 01:57 PM
Hi...yes...you're not understanding nor are you following what I mentioned.
In the documentation it says this: https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/use/navigation/concept/c_Navigati...
So if you change your URL to do:
sysparm_query=number=INC0412228
or perhaps remove number and place task...it should work.
Just like that.
The = sign shows for other parts of your url, but not the sysparm_query, try doing it exactly how it's mentioned.
Other examples here: https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/use/navigation/reference/r_Naviga...
Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2018 06:38 AM
Hi Allen,
Appreciate your help on this, but after reading through the articles you sent, and trying your recommendation, this method is still not working as expected. Might be something specific to my instance.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2018 02:07 PM
adding doc link. kindly go through that. it has mentioned example , how it works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2018 02:10 PM
Already mentioned that in my post. Thanks...
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!