2024-05-22T14:32:01Z [ERROR] DataActionExecutionFailed: Failed to map response body to output schema. Path '$.results[0].metadata.timestamp' does not exist in response.
I am building a Data Action in Genesys Cloud to fetch user profile data from our legacy CRM. The external endpoint returns a 200 OK with a JSON payload containing a nested array of objects. I have configured the Data Action with the correct authentication headers and the request body is null since it is a GET request. The issue arises when trying to map the response. The CRM API returns a structure where the actual data is wrapped in a results array, and each item has a metadata object with a timestamp field. I am trying to map this timestamp to an Architect variable user_last_login. When I test the Data Action in the UI, the execution fails with the error above, even though the raw response clearly contains the data. I have verified the JSONPath syntax using an online validator, and $.results[0].metadata.timestamp works perfectly. I suspect there might be an issue with how Genesys Cloud handles array indexing in the Data Action mapping engine or perhaps a timing issue with the response parsing. I have also tried flattening the array in the CRM response, but that is not an option as the CRM API is read-only for us. Has anyone encountered issues with mapping nested arrays in Data Actions? Is there a specific way to handle array indices in the JSONPath configuration within Genesys Cloud? I am currently on the latest version of the Genesys Cloud platform.