Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Get skills and skill proficiency for a user

    Posted 10-15-2025 17:04

    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
    -
    ------------------------------


  • 2.  RE: Get skills and skill proficiency for a user
    Best Answer

    Posted 10-15-2025 18:36

    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
    ------------------------------



  • 3.  RE: Get skills and skill proficiency for a user

    Posted 10-16-2025 09:46

    Thank you so much Elisson! That fixed it! 



    ------------------------------
    Connor Maxwell
    -
    ------------------------------