ballerinax/sfdc.bulk Ballerina library
Salesforce Bulk API is a specialized asynchronous RESTful API for loading and querying bulk of data at once. This module provides bulk data operations for CSV, JSON, and XML data types.
This module supports Salesforce Bulk API v1.
Before using this connector in your Ballerina application, complete the following:
- Create Salesforce account
- Obtain tokens - Follow the steps listed under OAuth 2.0 Web Server Flow for Web App Integration.
To use the Salesforce connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
ballerinax/sfdc.bulk modules into the Ballerina project.
Step 2: Create a new connector instance
sfdc:ConnectionConfig with the OAuth2 tokens obtained, and initialize the connector with it.
Step 3: Invoke connector operation
Now you can use the operations available within the connector. Note that they are in the form of remote operations.
Following is an example on how to insert bulk contacts using the connector.
bal runcommand to compile and run the Ballerina program.
Released date: about 2 years ago
Ballerina version: slbeta3
Current verison: 588