Use Salesforce Connector with Bulk API v1 to process records in jobs and batches
1. Create a job
Salesforce Conncetor operation: https://docs.mulesoft.com/salesforce-connector/latest/salesforce-connector-reference#createJob
2. Add a Batch to the Job
Salesforce Conncetor operation: https://docs.mulesoft.com/salesforce-connector/latest/salesforce-connector-reference#createBatch
3. Check Batch Status
Salesforce Conncetor operation: https://docs.mulesoft.com/salesforce-connector/latest/salesforce-connector-reference#batchInfo
Interpret Batch State: https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_batches_interpret_status.htm
4. Retrieve Batch Results
Salesforce Conncetor operation: https://docs.mulesoft.com/salesforce-connector/latest/salesforce-connector-reference#batchResult
5. Based on the error messages for the failed records, fix the records if necessary and repeat steps 2 - 4 to submit the failed records again for processing.
6. Close the job
Salesforce Conncetor operation: https://docs.mulesoft.com/salesforce-connector/latest/salesforce-connector-reference#closeJob
Disclaimer: This solution provides a suggestion that should be considered in conjunction with your specific use case and requirements and does not represent a complete solution for all circumstances.
This article involves products and technologies which do not form part of the MuleSoft product set. Technical assistance for such products is limited to this article.
005105139

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.