Rest api question

samadam
Kilo Sage

I have a scheduled job calling a rest get message. I need that loop though and get 1000 records at a time. How can I do that calling the rest message created? How can I pass the loop parameter to the rest message from the script? 

1 REPLY 1

aizawaken
Tera Guru

hi @samadam ,

If you are talking about /api/sn_hr_core/hr_rest_api/get_usa_employee_profile, you can find the parameter "sysparm_limit" and "sysparm_offset".
This API supports a paging response, and you can set a page number in "sysparm_offset". 

What do you think?