I tried following ways
added the following custom attributes as specified in the https://developer.mypurecloud.com/api/embeddable-framework/purecloud-embeddable-framework-example.html I have added similar way as specified in the below added image.
customInteractionAttributes: ["SFCaseID", "SFuserPhoneNumber"]
Then in this link https://github.com/MyPureCloud/embedded-crm-pef-example says that addCustomAttributes method should be included in listener.
below image framework.js file I have included the addCustomAttributes () method as specified in the document.
though i have added all necessary items, But its not triggering into it.
Also added below method which is provided in https://github.com/MyPureCloud/embedded-crm-pef-example/blob/master/public/framework.js
customInteractionAttributes: (() => {
console.log ('****Custom:'+window.location.search);
debugger;
let customAttributes = new URLSearchParams(window.location.search).get('customAttributes');
if(!customAttributes) return [];
return customAttributes.split(",");
})(),
Is there any other setup has to be done ?
I am also looking into the OpenCTI documentation from salesforce
But this framework.js is not invoking it.
Can you let me know whats the missing step here ?