• getConnection(salesforceOrgBaseUri: string, consumerKey: string): Promise<null | SalesforceConnection>
  • Retrieves an existing connection with a Salesforce org, created using the connect function.

    The same org URL and consumer key values must be specified as was used when the connection was established, otherwise the connection will not be found.

    Returns

    The existing connection object, or null if no existing connection is found.

    Parameters

    • salesforceOrgBaseUri: string

      The base URI of the connected Salesforce org, which should be in the form: https://MyDomainName.my.salesforce.com.

    • consumerKey: string

      The consumer key of the Connected App used to connect.

    Returns Promise<null | SalesforceConnection>

Generated using TypeDoc