REST API and most recent records
search cancel

REST API and most recent records

book

Article ID: 274210

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

When using CA Service Desk Manager's (CA SDM), Rest API, how can you parameterize a query so that it returns only the 3 most recent records of a query?

Environment

CA Service Desk Manager 17.x

All Supported Operating Systems

Resolution

You can use the SIZE and SORT parameters within the REST API query

For example:

size=3
SORT=id DESC

http://<SDM IP Address>:8050/caisd-rest/cr?size=3&WC=customer=U'754500FBA357994B82299B4A8BF24C03' and status in ('CL','CLUNRSLV','RE','SCSD','SCST','CCST')&SORT=id DESC