I’ve implemented a custom calling feature using Open CTI and Twilio in Salesforce. Click-to-dial works, but the screen pop doesn't appear for outgoing or incoming calls. I'm using sforce.opencti.screenPop() to display the relevant record, with the recordId retrieved via sforce.opencti.getAppViewInfo(). The error logs show "INVALID_PARAM" and "No recordId provided for screen pop," even though the recordId is retrieved successfully. I’ve confirmed that Open CTI is initialized correctly and tried hardcoding the recordId, but the screen pop still doesn't show up. Could you help fix this?
Hello @Pranav Jathar,
you're on the right track but facing a few issues. First, ensure that the recordId you're passing to sforce.opencti.screenPop() is a valid Salesforce ID and not just a string. Check that you are calling the screen pop function after the call state changes to connected, as it might be triggering too early. Additionally, verify that the sforce.opencti.getAppViewInfo() is returning the correct values. If hardcoding the recordId doesn’t work, make sure your CTI adapter is configured correctly to handle screen pops. Review permissions for the record type as well.
Regards
Sunny Patwa