Web Services call to obtain a list of incidents in a given timespan
search cancel

Web Services call to obtain a list of incidents in a given timespan

book

Article ID: 234982

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

Asking if we can get the incidents created in past 5 mins via webservice method. Please suggest if its possible in where clause of doselect().

Environment

Release : 17.3

Component : SDM - WebServices

Resolution

there is no specific function within SDM Web Services to use the Timespan function which is commonly used in stored queries. 

Suggesting using another means to calculate for a 5 min timeframe for a ticket's open date.  Generally a third party API call or script should be used to calculate the current time in UNIX format, then subtract 300 to obtain the given time five minutes prior, then search against the open_date field in the "cr" object.