Newer Version Available

This content describes an older version of this product. View Latest

Connecting to the Toolkit

The first portion of any JavaScript code that uses the Salesforce Console Integration Toolkit must make the toolkit available to the JavaScript code. The syntax for this is different depending on whether you are embedding JavaScript in a Visualforce page, or a third-party domain.
  • For Visualforce pages or any source other than a custom onclick JavaScript button, specify a <script> tag that points to the toolkit file:

    For Visualforce, a relative path is sufficient to include integration.js, and is recommended.

  • For a third-party domain:

    If you don’t have a My Domain deployed in your org, your URL format is different. The Stabilize URLs in Visualforce, Experience Builder, Site.com studio, and Content Files release update also affects this format. See My Domain URL Formats in Salesforce Help for details.

    Note

The version of the Salesforce Console Integration Toolkit is in the URL.