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

Receive headers in response #353

Open
marinakosolap opened this issue Oct 3, 2024 · 1 comment
Open

Receive headers in response #353

marinakosolap opened this issue Oct 3, 2024 · 1 comment

Comments

@marinakosolap
Copy link

Hi there.
I'm working with Bulk API 2.0 Query right now - https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/query_get_job_results.html
And I need header Sforce-Locator to understand if there are more records for my result or not. And get all of them if there are more. Like it is described in Salesforce docs.

Is there a way to get response headers?

I do query like
Forrest::jobs(
'/query/' . $jobId . '/results?maxRecords=10000',
['method' => 'get', 'format' => 'csv']
);

@marinakosolap
Copy link
Author

marinakosolap commented Oct 4, 2024

It is not relevant anymore. I found out that raw response can be received by setting 'format' => 'raw'. But I found this information going through the code of the library.
So it would be great if this can be added to readme or documentation - values which can be set for format.

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