Passing a value via URL into a record producer

Jeff Krueger1
Tera Expert

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:

find_real_file.png

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!

1 ACCEPTED SOLUTION

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.

View solution in original post

14 REPLIES 14

Tim Woodruff
Mega Guru

Ahoy! 

I'm a little late to the game here, but for anyone googling this question, I wanted to mention that I've just published a free tool that works on both CMS, and the portal. It also works on any catalog item it's added to, and for any variable! 

http://urivars.snc.guru/

Hope this helps! 

Hello @Tim Woodruff 

I tried your solution it's working much thanks

Your first message seems to have said it's not working, but now it says it is working - I assume it's all good now? If so, glad to hear it!

I'm a little confused at your response.  I'm pretty sure they were thanking you for the solution.

Definitely difficult when someone is editing a message.  Certainly changes the context of a reply  🤓  👍