Hi Connor,
The "id" and "proficiency" fields are arrays. In this case, you can define the output contract like this:
{
"type": "object",
"properties": {
"SkillId": {
"type": "array",
"items": {
"type": "string"
}
},
"Proficiency": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
As for the translationMap, it can be set up as follows:
{
"translationMap": {
"ID": "$.entities[*].id",
"proficiency": "$.entities[*].proficiency"
},
"translationMapDefaults": {
"ID": "null",
"proficiency": "null"
},
"successTemplate": "{\"SkillId\": ${ID}, \"Proficiency\": ${proficiency} }"
}
------------------------------
Elisson Fernandes
------------------------------
Original Message:
Sent: 10-15-2025 17:03
From: Connor Maxwell
Subject: Get skills and skill proficiency for a user
Hello, I am looking to create a data action that can collect the skills (and skill proficiency) for a user. I am using the API /api/v2/users/${input.User_ID}/routingskills but I am having trouble with the translation map.
Using this data, it is my goal to use another data action (patch /api/v2/users/{userId}/routingskills/bulk) to add these skills to another user.
Any insight is appreciated, thank you in advance.
My current setup:
Contracts:

Configuration:

Current output:

#DataActions
------------------------------
Connor Maxwell
-
------------------------------