Hi Connor,
Use following output contract
{
"type": "object",
"properties": {
"id": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
And below translationMap
"id": "$.entities[*].id"
That should get you going.
Cheers
Zubair
------------------------------
Cheers
Zubair
------------------------------
Original Message:
Sent: 05-15-2025 12:21
From: Connor Maxwell
Subject: API response with data array
Hello,
I am currently working on an automation project.
In short, I am looking to automatically update a gamification profile members based on queues. In my limited knowledge of API's, I thought this would be easiest to use the below API to get the names of everyone assigned to the queue and then use a different API to add all the names to the gamification profile. I am currently running into an issue trying to get all the id's from everyone in the queue. I am pretty sure the issue is with my translation map/success template but hopefully someone can assist. (I am putting all my info incase its not in the translation map/success template)
Input contract:
{
"type": "object",
"required": [
"Queue_ID"
],
"properties": {
"Queue_ID": {
"type": "string"
}
}
}
Output Contract:
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"id": {
"type": "string"
}
}
}
Configuration:

Response:
{
"translationMap": {
"id": "$.entities.id"
},
"translationMapDefaults": {},
"successTemplate": "{\n \"id\": ${id}\n}"
}
#API/Integrations
------------------------------
Connor Maxwell
-
------------------------------