Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create Incident ticket using URL

ssam2
Kilo Explorer

Hello,

Would like to know if it's possible to create incident ticket using url e.g.

https ://xxxxxxx.service-now.com/incident.do?sys_id=-1&sysparm_query=active=true&sysparm_stack=incident_list.do?sysparm_query=active=true .....

and with some basic mandatory field e.g Company, Assignment Group etc.

The main idea is just to include some mandatory fields and create a incident ticket and assigned to a group automatically.

Thanks.

Note : We are not developers or Service Now Admin, just pure Service Now user.

16 REPLIES 16

Thanks Berny,



We are on the right track. How do I find out the parameter for e.g. Company



find_real_file.png



Is it incident.company and then I include the company name to &incident.company=Company&incident.caller=test caller&etc



And finally able to submit it



Thanks.


Correct, but you will need the sys_id of the Company to go on the value part of the query, which is what goes in the right side of the = for each reference field.



To know which are the sys_ids you may want to:


1) create (or use an existing incident) with the respective reference values that you want to use.


2) Once you have the record saved you right click on the incident header and you select the copy the URL option. That URL will show you which are the sys_ids that you should be using.



Thanks,


Berny


Thanks Berny, sorry for the pain



Found out the sys_id


sys_id=04d9d8180fb14e00bab2fc4ce1050e5e



question ; how do I create a new ticket using



https://xxxxxx.service-now.com/incident.do?sys_id=-1&sysparm_query=active=true&sysparm_stack=inciden...



i.e. using sys_id=-1 and sys_id=04d9d8180fb14e00bab2fc4ce1050e5e at the same time



Thanks.


Hi Sam, no worries.



It will then be something like:



yourinstanceurl/incident.do?sys_id=-1&sysparm_query=short_description=hello^impact=2^caller_id=04d9d8180fb14e00bab2fc4ce1050e5e



Notice that on the above path i'm creating a new incident with:


Short Description Hello


Impact 2


Caller Id the one you defined with the sys id



Do notice that each parameter goes separated by a ^. I'm mentioning this in case you need to set more fields.



I hope this is helpful !



Thanks,


Berny


Hi Sam, i believe that with that you should be all set.



Would you mind confirming that it worked for you and mark the responses as helpful/correct so that we can close this thread?



Thanks,


Berny