Hi
I am trying to perform an onclick action from Dynamics 365 Customer Service Hub to my webpage that is loaded in Channel Integration Framework panel.
I have done the following but my callback function is NOT getting invoked from Dynamics. Can someone tell me what I am doing wrong here? If you need more info, will be glad to share.
Onload of the page an event (“onclicktoact”) is triggered to dynamics.
This is my code
var successCallback = function(resp){
console.log("succ "+JSON.stringify(resp));
}
Microsoft.CIFramework.addHandler("onclicktoact", successCallback);
However successCallback is not getting invoked at all.
This is what i see in my console logs:
CIF Telemetry - Number of Events Sent: 1
Error : Uncaught (in promise) Map(2) {"message" => "Timeout occurred as no response was received from listener window", "c" => undefined}