12-01-2004 12:17 PM - edited 03-13-2019 10:35 PM
I want to map called numbers with a name that can be displayed to in the enterprise data field on the agent desktop.
The client has ipcc expressed enhanced so I cannot query a database for the data. I could use the if and then set to match and then map. However, there are about 200 mappings I need to make. Totally unwieldy to do if-then statements. Plus, isn't there a tree depth limitation of 32 or something?
Is there a better way to do this?
12-01-2004 01:48 PM
You could store the information in an .xml file and use that as your "DB". Not sure of your CRS/XML scripting experience (much to in depth for me to walk you through creating this appplication) but it can easily be done.
12-01-2004 11:03 PM
that looks like it might work really well. can you give any guidance on the format of the "XML Path" setting? Here is an example:
I know the CALLER attribute number and I want to find the NAME associated with it. Here is the xml path I have tried, but it gives me a parse error:
/child::CALLER[attribute::number='81470']
I also tried to no avail:
/CALLER[@number=81470]/NAME/text()
and variations thereof...
12-02-2004 08:56 PM
Hi,
The following sample is extracted from Editor Step Reference Guide
http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/step.pdf -Pg.No:11-14
Example 11-2 A Sample XML File
To extract data from an XML file, you must identify the exact XML path, as in
Example 11-3 Typical XML Path
/descendant::STOCKLIST/child::STOCK[attribute::symbol='CSCO']/child::LAST
As per your example XML file
To extract the value of node "Name" the XML path should be specified as follows
"/descendant::CALLER[attribute::number='81470'] /child::NAME".
Hope it helps
Regards
Yogi
12-06-2004 11:06 AM
Thanks. That helped.
12-15-2004 03:55 AM
Hi Brandon,
One of my client has same requirement you have mentioned above.Can you pls let me know how you have acheived this requirement.Thanks in advance.
Regards,
Jagadish S
12-21-2004 07:43 PM
Here is what I did to successfully extract data from an xml file. This is an example that pulls the open and closed hours from an xml file. You can easily extend this to map names:
variable: systemTimeURL (type = document, value=URL[http://
variable: systemTime (type=document value=null)
variable: openHours (type=string value=null)
This is what the xml file looks like:
Steps:
Create XML Document (Source Document=systemTimeURL Result Document=systemTime)
Extract XML Document Data (Document=systemTime, XML Path=/descendant::times/child::open, Result Data=openHours)
That gives you your name. Replace the "/descendant::times/child::open" path with "/descendant::times/child::
attached is an example file that I made (it does something different, but the idea of extracting sml data is the same).
03-01-2005 05:10 AM
Nice post, has anyone done this for names yet ?
04-05-2005 04:56 AM
I created an XML file and a script that maps the customer name based on the dialed (called) number and selects a custom prompt specific to the customer.
I created a new post titled "Popping the Customer Name based on Called Number" posted on April 5, 2005.
Good luck - Rob.
04-06-2005 12:10 AM
Thanks Rob, Managed to figure this out, quite simple really.
I take a look at your post to double check.
James
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