How to retrieve all DCR's created in a tenant by particular user

Problem:

Customer is working on DCR extract for a Client Requirement.  They are getting only 10 Change request as it is the default. The Customer already knows they can use max to define the number for a response but want to get a response for all DCR's created by a User for they don't know how many a user can create per day.

 

 

Example; The Customer is currently using the following REST API endpoint below.

GET {tenantUrl}/changeRequests?filter=in(createdBy,'User')

Screenshot_-_4_21_2019___12_54_36_PM.png

 

  

Solution: 

To check the total number of changeRequest created by a particular user (in this case 'Integration_Gateway_User'), use the "_total" in the command and remove offset&max like below -

Request -

GET    https://eu-dev.reltio.com/reltio/api/FLy4mo0XAh0YEbN/changeRequests/_total?filter=in(createdBy,'Integration_Gateway_User')

Response - 

{
    "total": 6193
}

There is no API call to get the detailed response of all the changeRequests, you have to use offset&max to limit the number of changeRequest returned.

For 1st 100 records, use offset=0&max=100
For next 100 records, use offset=101&max=200 and so on

Ticket(s):

https://reltio.zendesk.com/agent/tickets/15801

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.