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

Thanks for that, Chuck, but I think this needs to be run from server-side scripts, like BR. I am looking for something where I can update an existing record with some new value of caller_id with the values I pass in from the URL, without any scripts (basically from the perspective of a non-admin user)

 

For example, I created an incident by using an URL like https://myinstanceurl.com/nav_to.do?uri=incident.do?sys_id=-1&sysparm_query=caller_id=SYS_ID_OF_TEST_USER_1.

So I have the incident with caller_id=TestUser1 and sysID=ABC123.

Now can I update the same record using a similar URL like this? https://myinstanceurl.com/nav_to.do?uri=incident.do?sys_id=ABC123&sysparm_query=caller_id=SYS_ID_OF_TEST_USER_2

Jyoti Garg1
Tera Contributor

Hi @Annay Das 

I am facing similar issue.

I have "create incident" button on each knowledge article on employee center portal. My requirement is that when user click on this button a new incident form get open, where description of the incident should get auto-populate by the value of knowledge article's short description. 

so, how i can cater this functionality by using the url only.

currently, am able to open a new blank incident by click on the button. 

current url is like: 

esc?id=*********&sys_id=*********&sysparm_description=hello&view=ess

by this url, getting a fixed value in description field of incident as hello