How can the developer meet these following requirements?A developer - ProProfs Discuss
Topics
Products
Follow Us:

How can the developer meet these following requirements?
A developer must create a custom pagination solution for accessing approximately 2000 recordsand displaying 50 records on each page. Data from Salesforce will be accessed via an API and not viaApex.



A. Use a StandardSetController.
B. Use CURSOR 50 in SOQL queries.
C. Use OFFSET in SOQL queries.
D. Use LIMIT 50 in SOQL queries.

This question is part of PD2
Asked by Pal, Last updated: Jun 02, 2020

+ Answer
Request

2 Answers

H. Martin

H. Martin, Content Writer, Charlotte

Answered Aug 28, 2018

At times, a worker using Salesforce in their company may need to access a large amount of records at one time and they will want it displayed together, so that they will be able to look at them and compare the data. It would be quite time-consuming to flip through each record. Clicking on each record and waiting for it to open would take quite a while. Instead, there are ways to display 50 records on each page.

Then you could analyze 50 records at one time. To do this, the Salesforce worker will access it by API and not Apex. API stands for application programming interface. This provides the exact behavior that is expected. In order to do this, use OFFSET in the SOQL queries and also use the LIMIT 50 SOQL queries.

 

Pal

Pal

Answered Jan 16, 2018

Use OFFSET in SOQL queries.
Use LIMIT 50 in SOQL queries.
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.