cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
523
Views
5
Helpful
3
Replies

initiateDirectTransfer failing while trying to initiate transfer

smeegada1
Spotlight
Spotlight

Hi,

initiateDirectTransfer is working when I hardcode XFER211111 but failing when trying to pass it dynamically

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

3 Replies 3

smeegada1
Spotlight
Spotlight

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

dekwan
Cisco Employee
Cisco Employee

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: