cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
229
Views
10
Helpful
2
Replies

Webex CC How To Parse Data from HTTP Response

ann.lozier
Beginner
Beginner

I have created a custom Connector to retrieve information from an API.  The HTTP Status Response is 200 and on the API side I can see the correct response has been sent.  But, I am not able to parse the data.  Below is the start of the response:

{
    "success": true,
    "data": {
        "activityDate": "2010-04-24",
        "currentRelationshipCode": 0,
        "divLastYearNonTax": 2585.68,

In the Node, in the the Parse Settings section, I have set the Content Type to be JSon and in the Path Expression I have tried:
$.data.currentRelationshipCode
$.currentRelationshipCode
$.success

But so far nothing has worked.  There are no logs to indicate what the problem might be or if I am even getting the correct response back. I need help

2 Replies 2

chmouli
Cisco Employee
Cisco Employee

this page has video and sample Json parsing 

Hope it helps

https://wxcctechsummit.github.io/holcct2107/labslive/lab3.html

Thomas G. Johannesen
Contributor
Contributor

you should read the data like this

data.currentRelationshipCode

or if you have arrays 

data[0].currentRelationshipCode

No $ sign

-----------------------------------------------------------
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