Skip to end of metadata
Go to start of metadata

Introduction

This page covers Jitterbit variables that are available for Salesforce (SFDC), organized by informational variables that you get (read), and settings variables that you set (write):

Informational

Settings

Informational

jitterbit.sfdc.failure_record_count

Variablejitterbit.sfdc.failure_record_count

Data Type

Integer
Description

Returns the number of failure records from a Salesforce upsert, insert, update, or delete operation. For example, this variable may be used within a script to apply the logic that if failure record count is not equal to zero, then RaiseError() is called:

<trans>
If($jitterbit.sfdc.failure_record_count != 0,
RaiseError(“All record updates were not successful. Please review logs.”)
)
</trans>

jitterbit.sfdc.query.record_count

Variablejitterbit.sfdc.query.record_count

Data Type

Integer
Description

Returns the number of records returned by a Salesforce query operation. For example, this variable may be used within a script to record the number of queried records in the operation log:

<trans>
WriteToOperationLog(There were $jitterbit.sfdc.query.record_count records queried.)
</trans>

jitterbit.sfdc.success_record_count

Variablejitterbit.sfdc.success_record_count

Data Type

Integer
Description

Returns the number of success records from a Salesforce upsert, insert, update, or delete operation. For example, this variable may be used within a script to record the number of records successfully upserted, inserted, updated, or deleted within the operation log:

<trans>
WriteToOperationLog(There were $jitterbit.sfdc.success_record_count records successfully processed.)
</trans>

Settings

jitterbit.sfdc.auto_fieldsToNull

Variablejitterbit.sfdc.auto_fieldsToNull

Data Type

Boolean
Defaulttrue
DescriptionIf set to true, fieldsToNull elements for Salesforce web service calls will be automatically inserted when NULL or an empty string is mapped to a field. The default is true for backwards compatibility with previous versions where this was a manual process. This flag should be set to true if you plan to map null or empty fields and expect those to be set to null in Salesforce.

jitterbit.sfdc.dbsource.sfheader

Variablejitterbit.sfdc.dbsource.sfheader

Data Type

Boolean
Defaultfalse
DescriptionApplies to Salesforce update and Salesforce upsert operations. If set to true, allows you to capture the header string from a database source and write the string at the beginning of success and/or failure files. For more information, see Salesforce Advanced.