- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 05:38 AM
Hi guys,
Im trying to construct a rest api call ( using the rest explorer ) to query for all "new" tickets created "today" with a specific "Origination method".
Can anyone help?
I'm very new to this so please be gentle!
thanks!
Jon
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 05:49 AM
Hi Jon,
Go to the incident.list or task.list and use the filter to define your query.
Execute it to preview the result.
Now you can do a left click on the filter breadcrumb to copy the query.
In the REST API Explorer, paste this in the field sysparm_query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 05:52 AM
Hi Jon,
Please add this line in your sysparm_query "sys_created_onONToday@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)"
and it should return you all tickets created today. What do you mean by origination method?
Thanks
Ali