Scripted REST Resource: GET : sysparm_limit as parameter

madhusudanshett
Kilo Contributor

Hello Everyone

I have created a GET Scripted REST Resource to retrieve all the incident records. Now I want to check for only particular number of records. We can limit the records in query but I want to make it as dynamic.

Is there any way so that I can pass this (sysparm_limit=20) as a parameter ?

Please help me on this.

ctomasi

dave.slusher

ChrisB

Thanks in advance.

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi,



Yes, you can do this quite easily. In the "Query Parameters" related list of the scripted REST form, add an entry for sysparm_limit.



Scripted REST API query parameters


View solution in original post

2 REPLIES 2

Chuck Tomasi
Tera Patron

Hi,



Yes, you can do this quite easily. In the "Query Parameters" related list of the scripted REST form, add an entry for sysparm_limit.



Scripted REST API query parameters


Hi Chuck



Thank you very much.