Skip to main content

SLAM_load_bulkv2

Note: For Bulk v2 operations, the @externalId is mandatory and must be a real Salesforce field. This is essential to correlate the Salesforce result with the original input table.

Parameters:

NameTypeDefaultDescription
@sObjectNVARCHARRequiredSalesforce object name to load data into
@tableNVARCHARRequiredSource SQL table containing data to load
@operationNVARCHARRequiredOperation type ('insert', 'update', 'upsert', 'delete', 'hardDelete')
@externalIdNVARCHARRequiredExternal ID field name (must be a real Salesforce field for result correlation). In the case of delete and hardDelete operations, use Id
@failure_thresholdDECIMAL(5,2)100Allowable failure rate (0-100) before raising an error

Usage Examples:

Upsert Account records using external ID:

EXEC dbo.SLAM_load_bulkv2
@sObject = 'Account',
@table = 'Account_upsert',
@operation = 'upsert',
@externalId = 'Account_External_Id__c'

Delete Opportunity records:

EXEC dbo.SLAM_load_bulkv2
@sObject = 'Opportunity',
@table = 'Opportunity_delete',
@operation = 'delete',
@externalId = 'Id'