Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database.query in RecordTimelineDataProvider.getTimelineItemData not fetching all data #24

Open
djs959 opened this issue May 29, 2024 · 0 comments

Comments

@djs959
Copy link

djs959 commented May 29, 2024

Currently RecordTimelineDataProvider.getTimelineItemData assumes all the data is returned in the initial call to Database.query which results in the timeline not displaying all the records without an indication some records are missing.

When Database.query is called if there are more than a few records in the result, the field done is false and nextRecordsUrl should then be called to fetch the remaining rows.

This is described in https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm

nextRecordsUrl is potentially returned for each object in the result. So the fix will require iterating through objects in the result, calling nextRecordsUrl where needed and reassembling the result to be returned to the LWC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant