function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
someonesomeone 

How to import interaction.js

I have a call center app which makes use of the open CTI library. What is the best way to import this javascript file if the host is essentially a variable and can change for each login. For example, na15 may change in the future:
<script src="https://na15.salesforce.com/support/api/31.0/interaction.js"></script>

So is it best to download this file and host locally?



 
BalajiRanganathanBalajiRanganathan
I tried this and it worked.
https://login.salesforce.com/support/api/31.0/interaction.js
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