REAST API call for latest ticket for a given assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 05:53 AM
Hi guys,
I am automating ticket creation for badge scans and am looking to create a REST api call to query for the incident number with a user name variable ( powershell )
Essentially, what happens is the ticket gets created and I then want to send back a response with the user name (which is variable) and inc number.
Can anyone help?
thanks!
jon
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 06:35 AM
If you want the latest single record, then use sysparm_limit=1 and sysparm_order=sys_updated_on and finally sysparm_order_direction=desc
That should give you a list of records ordered in descending date (giving you the newest at the top) and sysparm_limit only grabs one record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 06:35 AM