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

tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Sam,



You can create an incident record with REST api, available Eureka onwards


Getting Started with REST - ServiceNow Wiki


..


5.1 Create an Incident Record

Based on the Table API resources, use a POST action to create a new record. To insert a record into the Incident table, use this function:


POST https://myinstance.service-now.com/api/now/v1/table/incident 
Insert fields and values into the record you just inserted that are appropriate to the Incident table in your instance. For example: {"short_description":"Test creation of incident", "comments":"These are my comments"}


Best Regards



Tony


Or use   SOAP


SOAP Direct Web Service API - ServiceNow Wiki


..


1.2 Data Modification API

1.2.1   insert

Creates a new record for the table targeted in the URL


Thanks Tony, we are just pure user trying to make life easier for us.


bernyalvarado
Mega Sage

Hi Sam, indeed it's possible and you're on the right track by setting the sys_id to -1, which is the way to indicate to ServiceNow that this is a new record.



For any reference field like Company, Assignment Group, etc... you will need it's related sys_id. Please refer to the following post for examples on how a new record with reference field could be created:


Re: sysparm_query



Thanks,


Berny