Havent seen the source data structure but guess is to try below in translationMap
Original Message:
Sent: 08-16-2024 06:44
From: Karthik Ageer
Subject: Need help with Translation map for a dataaction
I am getting error but this is what i currently have.

------------------------------
Karthik Ageer
Computer Generated Solutions, Inc.
Original Message:
Sent: 08-16-2024 06:40
From: Muhammad Zubair Awan
Subject: Need help with Translation map for a dataaction
Hi
Whats your current translationMap?
------------------------------
Cheers
Zubair
Original Message:
Sent: 08-16-2024 06:04
From: Karthik Ageer
Subject: Need help with Translation map for a dataaction
Hi All,
For a data action in genesys i am getting the response in this format.
[
{
"document": {
"orderID": "abc"
}
},
{
"document": {
"orderID": "123"
}
}
]
I would like to convert it to this format
{
"documents": [
{
"orderID": "abc"
},
{
"orderID": "123"
}
]
}
Please help me with the translation map configuration in response for this conversion to happen.
#API/Integrations
#ConversationalAI(Bots,AgentAssist,etc.)
------------------------------
Karthik Ageer
Computer Generated Solutions, Inc.
------------------------------