Hi Matthew,
If you want to use a workflow that pops within a frame in the Finesse interface, you can use the WorkflowScreenPop sample gadget.
If you want to use the learningsamplegadget, you would need to do the follow:
Where you see the code
$("#bing").attr("src","https://www.bing.com/search?q=" + callVars["callVariable3"]);
you need to add an IF statement similar to this (note that this is not tested code):
var dialedNumber = dialog.getData().dialedNumber;
if(dialedNumber === '1234') {
$("#bing").attr("src"," https://left-intranet"+ callVars["callVariable1"]);
} else if (dialedNumber === '4567') {
$("#bing").attr("src"," https://right-intranet"+ callVars["callVariable1"]);
}
Again, the code above hasn't been tested, so there might be some errors, but you should get the point.
Thanx,
Denise