+ Start a Discussion
ADARSH SINGH 17ADARSH SINGH 17 

Default instances URL to execute the Open CTI JavaScript library files(Interaction.js and Opencti_min.js)

As we are working on Salesforce OpenCTI tool in a managed package. I just got stuck to invoking  Open CTI JavaScript library files(interaction.js and opencti_min.js) by using a default absolute URL.
As mentioned over Salesforce Document we use the following URL for different platform:

In Salesforce Classic: <script src="https://c.<yourInstance>.visual.force.com/support/api/46.0/interaction.js" type="text/javascript"></script>

In Lightning Experience:
<script src="https://c.<yourInstance>.visual.force.com/support/api/46.0/lightning/opencti_min.js" type="text/javascript"></script>

So, in above-mentioned URL what exact default <yourInstance> URL we have to use as absolute URL. So that we can use a single URL for all the customer's Salesforce instance.
SAKTHIVEL MSAKTHIVEL M

Hi, 

Use the below URL if you connecting with your production salesforce org:

https://login.salesforce.com/support/api/48.0/interaction.js

if you connecting with your sandbox salesforce org:
https://test.salesforce.com/support/api/48.0/interaction.js