Create Incident ticket using URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2015 09:22 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2015 08:38 PM
Will do Berny, but it's not working yet.
If I get all the fields correct, how do I submit it ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2015 08:48 PM
Berny, one last thing.
How do I find out the or list out the &sysparm_query
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2015 10:34 PM
Hi Sam the sysparm_query needs to be formed with pairs of field = value. Any additional field added to the query needs to be included with the ^.
Follow the BKM previously shared of manually creating an incident and later copying it URL to have visibility into the field names and their respective values.
One important clarification. This method will just open a new incident with all the specified values prepopulated. This should be useful for you or any end user that will like to save time in the creation of an incident with common fields. Specially since a URL is something you can share along and even add in your browser's favorites. We followed this path assuming that you don't have a software development background on which you could have interacted through webservices with the Table API. Through the url method that we're following you're still required to submit the rest of the fields (if needed) and hit submit to save the incident. Through webservices and the Table API, the submission is taken care automatically but that will require another system to submit the request.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2015 04:25 AM
Hi, I am also trying similarly for inserting a record into change_request table.... the above url will only populate the value but we should do manual submission. Is there a way to insert the record without manually submitting it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2015 06:44 AM
Indeed. There's multiple ways in fact. It depends on your use case
a) One option is to do the insert via the table REST API
b) You could also setup your own end point in ServiceNow where you can do a GlideRecord and then use the .insert() method.
Thanks,
Berny
