Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Http Include step

hey,

i bulied a script for send contact detail to a crm url i have a contact center express 5 with limted license for http.

i have only http include on the crs editor can i use this option for send the url to the crm?

thank you

19 REPLIES

Re: Http Include step

Please clarify what you mean by send a URL.

I am thinking you are referring to HTTP POST or GET, but cannot assume.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: Http Include step

i need when incoming  call get in the csq to notify the crm server by sending url to the server with the parameter of the new call,

the devloper of the crm team will take this parameter and user it to make popup to the client.

Green

Re: Http Include step

Easy to do from the client when the call is presented - try a HTTP workflow in CAD. If this works for you, the integration will be easy.

Otherwise, are you trying to reach out to a web service in the script to obtain info that you then pack into enterprise variables to display to the agent. A very different integration.

Regards,

Geoff

New Member

Re: Http Include step

hi,

i need to this on the script to send a url to crm with this parameter .

Green

Re: Http Include step

Let's look at this way.

Inside your script you have access to some parameters regarding the call (you don't say what you want to use, but I suppose it's the ANI) and you want to look up a database. You would use the DB Steps and query the DB, get some info back, pack these into call variables for presentation to the agent or use the info to control the routing - the CSQ used etc.

Does that make sense?

But instead of a database, you have a Web service. Typically this means you either send a GET with a query string (name=value pairs) and get back an XML document which you parse, or you create an XML document and do a POST, getting back an XML document that you parse. Are you still with me?

Is this what you want to do? Would you do a GET or a POST?

Regards,

Geoff

New Member

Re: Http Include step

Geoff,

i will explain my requirements.

i need to send in url or web-service to crm server the following details:

calling number

telephony-id

new call or handle call .

what that will happen is this steps:

1. incoming call

2. the uccx script will send url to crm with the details:calling number , telephony-id and if its a new call or handeld call.

3. on the crm server should jump popup wirh my details.

so my qustion is how can i send url when the crm do Get.

what i should do to retrive this parametres to the crm.

thank you

Green

Re: Http Include step

natan.kasav wrote:

3. on the crm server should jump popup wirh my details.

so my qustion is how can i send url when the crm do Get.

what i should do to retrive this parametres to the crm.

thank you

"popup with my details" - then you need to do this from the client, from CAD, on the agent's machine. Not from your script.

This is well explained in the CAD document. Many people are doing this.

Regards,

Geoff

New Member

Re: Http Include step

ok what is the way to send this details to the crm?

Green

Re: Http Include step

In the Cisco Desktop Administrator User Guide, look at the section on workflow and search for HTTP action.

In retrospect, you may not be able to do this due to licencing. You need the integrated browser, and either Premium (post and get) or Enhanced (get). It sounds like you have a basic licence.

Regards,

Geoff

New Member

Re: Http Include step

hi,

i have the ipcc premium edtion

there is any way to do the transfer of the detils without the CDA?

i cannot make any try on the script that will do the "create url document" with the calling number and transfer this detail to the crm on web-service or url?

thank you

Green

Re: Http Include step

you could create a custom Java class that can take details from the call, construct a query string, send an HTTP GET to a well-known URL, parse the XML document that is returned, extract the details and set enterprise variables that would be seen on the CAD Agent Desktop. You could then use the Expression Editor to call your custom Java class. You would need pretty decent Java skills to do this (start with the Apache HttpClient class).

Regards,

Geoff

New Member

Re: Http Include step

Geoff,

thank you for your professional answer's

can you please tell me what are the step's i need to do on my script to transfer thos detils to the web on the crm?

its should be send url doc ?

thank you

Re: Http Include step

So far, from I have been reading, you would not need to use pure Java code to accomplish this task.  Of course, I'm not sure I understand fully, what it is that you are asking, but perhaps we can take it one step at a time and guide you.

Try this in a test script and active debug it (F10 key):

Variables:

// Replace the X's with a real phone number

String calling_number = "XXXXXXXXXX"

// Replace this url with the actual URL your CRM uses to receive GET requests for this application

String url = "http://crm_server/api?calling_number="

String http_response = null

Script:

Start

http_response = URL[url + calling_number]

End

When you run this, you should be able to look at the http_response variable and see the output from this HTTP GET call to the web server.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: Http Include step

Hi Anthony,

Thank you for answering me

When i try the script i get error from the phone that prompts:"I'm sorry we are currently experiencing system problems."

the script is :

Start

Send Http Response

End

is this the correct way or i missing somthing?

Thank you

Re: Http Include step

That is because you tried to Reactive Debug the script.  You simply need to press F10 while in the editor to get the Active Debug started.  I know the terminology is confusing, just understand that you don't need to call this script in order to test it.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: Http Include step

hi,

i try this and i get error:

send http respose:http contact invaild

i have attached the script.

i try differnt ways to put the url.

i see that if i just put this url "http://crmappdev/effect.crm.telephony/pages/ActionsManager/RegisterCallLog.aspx?phonenumber=123456&telephonyid=123456&status=1" on the explorer in the crm i can see that somtething get inside.

so this url is working for the crm and its correct i try your test and i also try my url both of them gave me the error.

thank you

New Member

Re: Http Include step

Anthony,
Do you know what i need to do from here?
Thank you
Natan
Green

Re: Http Include step

Can the UCCX box resolve the hostname crmappdev?

Regards,

Geoff

New Member

Re: Http Include step

Hi,

Yes when i try from the browser of the uccx its work with the same link that i try to put on the script.

BR,

Natan

632
Views
23
Helpful
19
Replies