Genesys Data Action Output Contract with Dot in the attribute name

Hi,

Could you pls help to parse below response and get topic category name ? I am getting blank value because I have "dot" in the response attribute name. I tried putting double underscore still no luck. Is there a way to parse this ?

Note : we are not getting topic_category as a object.

{
"result": [
{
"number": "12345687",
"sys_id": "fjdhfkhlfdlsafdsa",
"topic_category.name": "Test",
}
]
}

Response Contract Json:

{
"type": "object",
"properties": {
"number": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": true
}

Response Translation:

{
"translationMap": {
"number": "$.result[0].number",
"name": "$.result[0].topic_category__name"
},
"translationMapDefaults": {
"name": """"
},
"successTemplate": "{\r\n"number": ${number},\r\n"name": ${name}}"
}

try $.result[0].topic_category['name']

Hi Mike,

Thanks for you response ! We tried but no luck. Any Other thoughts ?

{
"number": "12345687",
"name": ""
}

Hello,

You can use the following Response Configuration:

{
  "translationMap": {
    "number": "$.result[0].number",
    "name": "$.result[0]['topic_category.name']"
  },
  "translationMapDefaults": {
    "name": "\"\"",
    "number": "\"0\""
  },
  "successTemplate": "{\r\n\"number\": ${number},\r\n\"name\": ${name}}"
}

Regards,

Hi Jerome,

It worked! Thank you for taking the time to respond to this query.

I truly appreciate your help once again!

Regards,
Suresh U

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.