• Varun Gaur
  • NEWBIE
  • 0 Points
  • Member since 2016
  • Software Engineer
  • Infogain


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Trying to connect to Open CTI library in sandbox using visualforce pages to only leverage the below functions from the library:
1) sforce.opencti.hvs.onWorkStart
2) sforce.opencti.hvs.completeWork
 

Visualforce Page Documentation:
1) <script src="/support/api/50.0/lightning/opencti_min.js" type="text/javascript"></script>

  • Error: "Uncaught Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters"


Third Party Domain Documentation
1) <script src="https://<<MyDomainName>>--<<Sandboxname>>--<<PackageName>>.visualforce.com/support/api/50.0/lightning/opencti_min.js" type="text/javascript"></script>

  • Error: Uncaught Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters

2) We are correctly putting the MyDomainName--Sandbox, is there a separate package that needs to be installed in the org for opencti_min.js to work? 

 

So all the above script tags have been tried out and we are still facing the error "Uncaught Failed to initialize Open CTI. Ensure that it is loaded from the right frame with correct URL parameters", we have exhausted the search results regarding this issue and the documentation does not mention anything regarding loading it from the right frame and also any parameters that needs to be called when loading the javascript 'opencti_min.js' file.

Looking forward towards a detailed explaination as to where to include parameters if needed and how to include them as well, and also where can I include this visualforce page in the page layout to only do one job which is to leverage the two HVS methods: completeWork and onWorkStart?
 

Hi all,
I'm working with the OpenCTI library and I want to invoke a flow through screenPop() method.

I create a visualforce page for testing purpose and according to the developer guide I wrote the folloing snippet of code:
function screenPopFlow() {

        date = '2018-08-21';
        duration = 10,00;
        subject = 'Incoming call';
        sforce.opencti.screenPop({ type: sforce.opencti.SCREENPOP_TYPE.FLOW,
                                  params: {flowDevName: 'ScreenDemo', flowArgs: [{ 'activityDate': date, 'duration': duration, 'subject': subject }]}, 
                                   callback : screenPopCallback });
        
    }
It seems that flow does not receive any values:
User-added image

OpenCTI version: 43

Anyone can suggest?

Thanks
Davide