- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 01:16 PM
I am trying to populate the description variable on a record collector form from an external URL. I am able to do so on a new Call form with the following URL:
https://<instancename>.service-now.com/nav_to.do?uri=new_call.do?sys_id=-1%26sysparm_query=description=this+is+the+description
which results in:
however, I'm unable to successfully pass it to a record collector for the New_Call table to the description variable. What am I missing? Can this be accomplished the same way with a sysparm_query? Any help would be much appreciated, thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 02:13 PM
Or try below keeping the + sign
g_form.setValue('description',parm[1].toString().replace(new RegExp("\\+","g"),' '));
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 02:09 PM
Try %2520
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 02:13 PM
Or try below keeping the + sign
g_form.setValue('description',parm[1].toString().replace(new RegExp("\\+","g"),' '));
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 02:17 PM
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 01:28 PM
You might try something like: sysparm_processing_hint=setfield:request.parent instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2018 01:40 PM
That's going to be a bit different because they are service catalog variables you are looking to populate, but totally doable. Check out this article - https://www.servicenowguru.com/scripting/client-scripts-scripting/parse-url-parameters-client-script...
Setup an onLoad Catalog Client script, include the function from the article in it and then you can call it to populate the variables that you need.