ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

[Salesforce client] Support for pagination/chunking #6577

Closed MaryamZi closed 5 months ago

MaryamZi commented 5 months ago

Description: $title, at least for Bulk API 2.0 operations.

Seems to be possible via Sforce-Locator https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/query_get_job_results.htm

Also see PK chunking - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/async_api_headers_enable_pk_chunking.htm (link is under Bulk API though)

Also, see "Chunking Query Jobs" in https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm. v2 seems to be handling chunking by default if the object supports it, but how do we retrieve the data in chunks in the Ballerina code?