cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
389
Views
1
Helpful
3
Replies

Send data to other server when agent status change

Thomas G. Johannesen
Contributor
Contributor

Hej all.

I'm trying to find a method so i can send calldata to an url whenever a call arrives or and agent changes state,

var currentState = user.getState();

        if (currentState === states.NOT_READY) {

            var currentReason = user.getReasonCodeLabel();

            if (currentReason === "")

            { $("#userState").text(Config_txt.NOT_READY);

// SEND AGENTSTATUS DATA TO URL :

// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady

}

            else

            { $("#userState").text(currentReason);

// SEND AGENTSTATUS DATA TO URL :

// http://<Microsoft IIS server IP>/getAgentData/data.aspx?user=user.GetExtension()&State=NotReady&ReasonCode=<currentReason>

}

The <Microsoft IIS server IP> could also be the client PC that has an www server on a specific port. This is for PopUp when agent goes not ready due to RNA calls.

Have anyone tried this - I can get i to work, and I don't which javascript command i should use.

Best regards

Thomas

-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue
3 Replies 3

ewindgat
Contributor
Contributor

Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.Calling a URL from a different URL domain than the Finesse website could bring up cross site scripting issues. You could use a technique like PJSON, etc.

That is what gadgets.io.makeRequest() is for.

Thanks. I will try that .-)

-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue
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:

Recognize Your Peers