[
https://issues.apache.org/jira/browse/CAMEL-22134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-22134:
-----------------------------------
Assignee: Claus Ibsen
> camel-salesforce does not honour maxRecords nor locator
> -------------------------------------------------------
>
> Key: CAMEL-22134
> URL: https://issues.apache.org/jira/browse/CAMEL-22134
> Project: Camel
> Issue Type: Bug
> Components: camel-salesforce
> Affects Versions: 4.12.0
> Reporter: Mikael Andersson Wigander
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: Screenshot 2025-06-03 at 14.44.03.png
>
>
> According to this issue CAMEL-17127 there has been a change where the
> _maxRecords_ and _locator_ arguments are added but my findings are that they
> are not.
> In the *BulkApiV2Processor* class is a method
> {noformat}
> processGetQueryJobResults(){noformat}
> .
> Here we try to fetch the parameters {_}jobId{_}, _locator_ and _maxRecords_
> but only _jobId_ is found and retrieved.
> I can't see that it creates the _?locator=_ query parameter that is required
> in the subsequent calls to get the next batch.
> The _getParameter()_ method is trying to find a parameter called "locator"
> but it will not find it. If changed to "Sforce-Locator", which is the header
> sent back from SF, it will use it and create a query with the value but still
> it eventually doesn't create the correct URI to SF.
>
> *The result of this call is fetching the same batch every time…*
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)