The CreatorCon Call for Content is officially open! Get started here.

REAST API call for latest ticket for a given assignment group

jonmuni
Kilo Contributor

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

6 REPLIES 6

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.