cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1179
Views
1
Helpful
2
Replies

In UCCX 10.5 Scripting XML document from String variable

Vinod Patil
Level 1
Level 1
Hello Experts, I am working on UCCX 10.5 scripting Where by using the "Make REST Call" step will get response from API and which is captured in the String variable (PFA for String variable data) , now I wanted to use this as XML document in temporary doc variable. is anybody have idea how to achieve it? Best regards, Vinod
1 Accepted Solution

Accepted Solutions

nathan.a.reeves
Level 1
Level 1

As a simple screen grab of a script that takes your xml data and does an XPath Query for a value:

I'd also take a look at the following post (not mine) which goes through the same info in alot more detail: http://routeswitchblog.com/2015/08/29/reading-data-from-xml-documents-in-uccx/

View solution in original post

2 Replies 2

nathan.a.reeves
Level 1
Level 1

As a simple screen grab of a script that takes your xml data and does an XPath Query for a value:

I'd also take a look at the following post (not mine) which goes through the same info in alot more detail: http://routeswitchblog.com/2015/08/29/reading-data-from-xml-documents-in-uccx/

Thank a lot Nathan, it worked

I need little more help on Xpath, from the attachement you can see there are many events under the "Events" tag , so what could me the Xpath to capture first "Event"? and there are no unique identifiers for these Events