dotConnect for Salesforce Documentation
Devart.Data.Salesforce Namespace / SalesforceLoaderColumnCollection Class / AddReference Method
The name of the column.
The name of the referenced Salesforce object.
The name of the referenced Salesforce object External ID field.

In This Topic
    AddReference Method
    In This Topic
    Adds an instance of the SalesforceLoaderColumn class that is an External ID reference to another Salesforce object.
    Syntax
    'Declaration
     
    Public Function AddReference( _
       ByVal column As String, _
       ByVal referencedTable As String, _
       ByVal referencedExternalIdColumn As String _
    ) As Integer
    public int AddReference( 
       string column,
       string referencedTable,
       string referencedExternalIdColumn
    )

    Parameters

    column
    The name of the column.
    referencedTable
    The name of the referenced Salesforce object.
    referencedExternalIdColumn
    The name of the referenced Salesforce object External ID field.

    Return Value

    The index of the added column.
    Remarks
    When you load data to a reference column, SalesforceLoader takes a value of the ID field of the referenced Salesforce object, for which the referenced External ID field is equal to the specified value, and asigns it to the target column.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also