josephtalaat | 2018-12-27 11:46:13 UTC | #1
Dears, Good Day !
I need your help please regarding the Embeddable framwork , we need to know the following:
1- How can I send phone number from CRM app to clickToDial function in the framework.js file? 2- In the embeddable framework can I send phone number from my CRM app to webRTC phone and initiate call automatically?
window.PureCloud = { addAssociation: function ({type, id, text, select, interactionId}), addTransferContext: function ({name, attributes}), clickToDial: function ({number, address, autoPlace, queueId, attributes}), subscribe: function ({type, callback}), Interaction: { addCustomAttributes: function ({interactionId, attributes}), updateState: function (action, id), Chat: { getTranscript: function ({interactionId, callback}) } }, User: { getAuthToken: function (callback), updateStatus: function (id) } };
at your example "https://developer.mypurecloud.com/api/embeddable-framework/purecloud-embeddable-framework-example.html", it shows the Click To dial function with Fixed parameters ..
clickToDial: clickToDial ({ number: "3172222222", autoPlace: true, queueId: "04a183b6-de9e-4c01-9e88-eab81799ad0z", attributes: {example_URLPop: "https://www.genesys.com"}
Then we are wondering how can we pass dynamic parameters from CRM App ?
Thanks Joseph Talaat
tim.smith | 2018-12-27 15:15:25 UTC | #2
josephtalaat, post:1, topic:4252
number: "3172222222",
In that line, use a variable instead of a static value. You can populate the variable in your application in any manner you desire.
system | 2019-01-27 15:29:46 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 4252