A solution to a Genesys data action where the name contains a period

I am looking for a solution to a Genesys data action where the name contains a period.

When a data action is created and executed,
The following response will be returned from the recipient.

Response from the counterparty
{
"result": [
{
"u_location.name": "testname",
"name": "name",
"active": "true",
"employee_number": "xxxxx",
"u_location.sys_id": "xxxxxx"
}
]
}

However, because the name of the response value contains a period (e.g., "u_location.name"), the mapping is incorrect and an error occurs.
Error: "message": "Failed while processing the translation map. Could not resolve value for the key: 'u_location_name' and no default value was configured. Additional details: Missing property in path $['u_location']",.

I am looking for a solution to this.
Is the only way to change the format of the response?
In the way the GenesysCloud action response is written,
Is there any way to solve this problem?

The current response is written as follows.
{
"translationMap":{
"u_location_sys_id":"$.result[0].u_location.sys_id",.
"name":"$.result[0].name",
"employee_number": "$.result[0].employee_number"
},.
"translationMapDefaults": {}, "successTemplate".
"successTemplate": "{\n"name": ${name}\n,\n"employee_number": ${employee_number}\n}"
}

try following in youe translationMap

"u_location_name":"$.result[0].[\"u_location.name\"]"

1 Like

thank you very much. I have resolved the issue with the information you provided.

1 Like

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