Skip to main content

SLAM_load_soap

Overview​

Suits smaller volumes of records and has additional controls via header options (see SOAP Headers). SOAP is the only API that supports undelete.

Parameters​

NameTypeDefaultDescription
@sObjectNVARCHARRequiredSalesforce object name to load data into
@tableNVARCHARRequiredInput SQL table containing data to load
@operationNVARCHARRequiredOperation type ('insert', 'update', 'upsert', 'delete', 'undelete')
@batch_sizeINT200Number of records per batch (maximum 200 for SOAP API)
@externalIdNVARCHARNULLExternal ID field name (required for upsert operations)
@ignore_nullsBIT0Whether to ignore NULL values when sending data. When set to its default value of 0, NULL and empty string data are sent to Salesforce with the instruction to blank out the field. When set to 1, NULL values are ignored (existing data is preserved), but empty strings still blank out the field. See NULL and Blank Handling for detailed behavior across all APIs
@dwell_timeFLOAT0Wait time in seconds between batches
@soap_optionsNVARCHARNULLAdditional SOAP headers and options. See SOAP Headers
@failure_thresholdDECIMAL(5,2)100Allowable failure rate (0-100) before throwing a SQL error. When 100, no error will be thrown
@dry_runBIT0When set to 1, validates field mapping and reports results without sending any data to Salesforce. See Dry Run

Usage Examples​

Insert Account records with default parameters:

EXEC dbo.SLAM_load_soap
@sObject = 'Account',
@table = 'Account_insert',
@operation = 'insert';

Upsert Contact records with custom batch size and dwell time:

EXEC dbo.SLAM_load_soap
@sObject = 'Contact',
@table = 'Contact_upsert',
@operation = 'upsert',
@externalId = 'Contact_External_Id__c',
@batch_size = 100,
@dwell_time = 2.0;

Insert with SOAP options for email headers:

EXEC dbo.SLAM_load_soap
@sObject = 'Case',
@table = 'Case_insert',
@operation = 'insert',
@batch_size = 150,
@soap_options = 'AllOrNoneHeader,allOrNone,true;EmailHeader,triggerUserEmail,false';