10-13-2022 01:09 PM - edited 10-14-2022 09:42 AM
Hi,
Working:- When Hardcoded
html += "<button class=\"btn btn-danger btn-block\" id=\"btn\" onClick=\"finesse.modules.SampleGadget.initiateDirectTransfer('XFER211111');\">Initiate Call </button>";
NOT_WORKING:- Failing when passing dynamic value
var agentID= user.getId();
clientLogs.log("pbagentID:" + agentID);
clientLogs.log("pbagentID:" + 11111); -- Value printing correctly in Locallog
var pbNum = "XFER2" + pbagentID;
clientLogs.log("pbm:" + pbNum);
clientLogs.log("pbm:" + XFER211111);- -- Value printing correctly in Locallog
html += "<button class=\"btn btn-danger btn-block\" id=\"btn\" onClick=\"finesse.modules.SampleGadget.initiateDirectTransfer(pbNum);\">Initiate Call </button>";
Thanks,
Sreeni
10-16-2022 08:50 PM - edited 10-16-2022 08:54 PM
I tried setting value in ICM script to callvariable3 (and can see correct value n screenpop) but still having issue.Any lead his helpful.
html += "<button class=\"btn btn-danger btn-block\" id=\"btn\" onClick=\"finesse.modules.SampleGadget.initiateDirectTransfer(callVariable3);\">Initiate Call </button>";
Thanks,
Sreeni
10-19-2022 08:44 AM
Hi,
finesse.modules.SampleGadget.initiateDirectTransfer is not the finese.js code. So can you use the browser's debug tool to step through thefinesse.modules.SampleGadget.initiateDirectTransfer code to see if it is sending the right string to the finesse.jsinitiateDirectTransfer?
When it is not working, is a value being passed to the Finesse server? What does Finesse say is the error?
Thanx,
Denise
11-02-2022 11:30 AM
Hi Denise,
We were able to find work around by looking at AgentExtension in CallingLineID in Consult script and it is working.Thank you.
Thanks,
Sreeni
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide