Thank you Jan! We got the translation map with "$.participants[0].participantId" to work but not the search version. The search version always turns up empty. Any ideas why this might happen?
We will go with what we have working now, but if we got the search version to work the solution would be more robust!
Thank you Jan for taking your time with this!
------------------------------
Fedrik J Sandberg
Project Manager, Online Business Development
------------------------------
Original Message:
Sent: 12-05-2025 15:02
From: Jan Heinonen
Subject: Get customer participant id inside an architect flow
Yes, for inbound the customer will always be first so you can use
"translationMap": { "customerParticipantId": "$.participants[0].participantId"}or to search"translationMap": { "customerParticipantId": "$.participants[@.purpose=='customer'].participantId"}
Note that it will return the value in an array
[ "f590770a-c189-45ab-bc4a-30c423befb47"]
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 12-05-2025 08:44
From: Fedrik J Sandberg
Subject: Get customer participant id inside an architect flow
Hi Jan,
Thank you for your answer. I guess that you need to specify this in the translation map in the response? We get this to work in our data action:
{
"successTemplate": "{\"participants\": ${allParticipants}, \"purposes\": ${allPurposes}}",
"translationMap": {
"allParticipants": "$.participants[*].id",
"allPurposes": "$.participants[*].purpose"
},
"translationMapDefaults": {
"allParticipants": "[]",
"allPurposes": "[]"
}
}
How can we get only the participant data for the customer? Can you share any examples for this?
All help is much appreciated!
/Fredrik
------------------------------
Fedrik J Sandberg
Project Manager, Online Business Development
Original Message:
Sent: 12-05-2025 07:32
From: Jan Heinonen
Subject: Get customer participant id inside an architect flow
Hi Fredrik,
You need to do that via Data Actions.
If you only need the participantId of the customer you can configure the data action to only return the id where purpose is customer to get minimal results.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
Original Message:
Sent: 12-05-2025 04:56
From: Fedrik J Sandberg
Subject: Get customer participant id inside an architect flow
Hi,
We need to get hold of the customer participant id inside an architect inbound call/email/message flow. By the looks of it there are no built in architect variable that keeps this value. We have also tried to build a data action retrieving the customer participant id but it gets very complex and we haven't found a way to get this to work. Has anyone a solution for grabbing the customer participant id?
#Architect
------------------------------
Fredrik Sandberg
Lead Engineer
------------------------------