Create New Incident from URL with prefilled form Fields

danalbrecht
Kilo Contributor

Hello.   I am very new to using ServiceNow and we are looking for a way to create a new incident with some prefilled information located in the Summary and description fields.

I have the starting url that needs to be added to:

https://xxxx.service-now.com/cna/create_incident.do

But I am not sure how to construct the remaining portion of the url to get this to work.

I have inspected the elements on the page and have the ID of the fields I would like to populate but no matter what I try, it does not seem to be working.   Any guidance you can get for this newbie would be extremely helpful.

Field ID's: u_incident_ess.u_summary

u_incident_ess.u_description

We are trying to integrate Salesforce, Guidewire, and other application platforms to be able to use a simple URL creation to create incidents with important information from the integrated systems to allow for better support.   We realize that this could be done through some web service integrations however we feel this might be a better solution to meet our needs.

Thanks

26 REPLIES 26

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Dan,



You may find below thread helpful.


3 Ways to Populate Values in ServiceNow via the URL


Chuck Tomasi
Tera Patron

Hi Dan,



You can use the sysparm_query=(encoded string) with sys_id=-1.



sys_id=-1 creates a new record


sysparm_query=(encoded string) fills in the fields. Example: short_description=Hello^state=2



http://wiki.servicenow.com/?title=Navigating_by_URL


Thanks.   I actually have tried this and I must be doing something wrong.



I have tried the following:



https://xxxxx.service-now.com/xxxx/create_incident.do?sys_id=-1&sysparm_query=u_summary=Short Summary



https://xxxxx.service-now.com/xxxx/create_incident.do?sys_id=-1&sysparm_query=u_incident_ess.u_summa... Summary



No matter how I put this together, the field still comes up blank.   It may be that I am using the wrong information.   I have inspected the HTML code and the name and id of the input box that I am trying to populate is listed as u_incident_ess.u_summary.   I have validated that I can actually update this field by using the HTML inspect element tool in IE11.



I may need some additional information from our ServiceNow partners.



If you could let me know where I get the information associated with the field I am trying to populate, that would be helpful.



Thanks


Hi Dan,



I need a little clarification on your data model.



What does create_incident point to? Is it a UI page? If so, you'll need to parse the URI manually and populate.



Next, what table does u_summary live on and what is u_incident? Populating fields via dot-walking isn't going to work here.