You need to sign in to do that
Don't have an account?
Peter Somogyvari 13
Pagination In Custom APEX REST Endpoint
Hiya,
In my custom APEX REST endpoint, I want to have the exact same pagination as the SFDC REST API.
Is there an easier way to achieve this than implementing the logic from scratch? I would love to just extend abstract base class that holds all this logic and is used by the SFDC REST API as well. Or something similarly convenient, that doesn't involve me re-inventing the wheel.
Thanks in advance,
Peter
In my custom APEX REST endpoint, I want to have the exact same pagination as the SFDC REST API.
Is there an easier way to achieve this than implementing the logic from scratch? I would love to just extend abstract base class that holds all this logic and is used by the SFDC REST API as well. Or something similarly convenient, that doesn't involve me re-inventing the wheel.
Thanks in advance,
Peter
How do we do the same implementation for APEX REST?
Give me the details of your objects; I will provide you the code for APEX REST.
I want to send the result in batch as we do it in REST API Query resource which used NextRecordsURL.
You are trying to develop the Controller class using ApexREST. Is that the purpose?
What I understood that you have the VF page and the controller is ApexREST. Correct me if I am wrong?
I think we need to use limit and offset values as parameters and returns the query to calling part.
got another response --> https://developer.salesforce.com/forums/ForumsMain?id=9060G000000I1oLQAS
appreciate if you could provide any other best solution.
I don't have VFP, instead sending the response to JAVA.