We’re excited to announce a major update to the Salesforce adaptor! This release introduces namespaced bulk operations for both Bulk API and Bulk API 2.0, making your integrations more reliable and performant.
Breaking Change
The previous bulk and bulkQuery functions have been replaced with namespaced functions: bulk1 for Bulk API and bulk2 for Bulk API 2.0.
Bulk upsert records to salesforce
Before:
bulk('Account', 'upsert', records, { extIdField: 'Id__c' });
After:
// Using Bulk API
bulk1.upsert('Account', 'Id__c', records);
// UsingBulk API 2.0
bulk2.upsert('Account', 'Id__c', records);
Bulk query records from Salesforce
Before
bulkQuery('select Id, Name from Account');
After
// Using Bulk API
bulk1.query('select Id, Name from Account');
// Using Bulk API 2.0
bulk2.query('select Id, Name from Account');
Read the migration guide for v8.0.0 and update your workflows accordingly!.