Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Trigger based on user status

    Posted 05-23-2025 09:59

    Hello, 

    I am trying to build a trigger that will start my desired workflow but it doesn't seem to be working. 

    My goal is for when a specific user or group of users put their status to a secondary available status (Project), it will trigger the workflow. 

    I have included the screenshot below of the idea I am going for but even when I have the only condition as "status", it does not work. 

    Thank you in advance


    #Triggers

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


  • 2.  RE: Trigger based on user status
    Best Answer

    Posted 05-23-2025 12:29

    Hello,

    There is no "status" property in the v2.users.{id}.activity schema. You can find the schema description of this topic here, under the EventSchema section.

    As you want to match based on a secondary presence, you will need to retrieve the id of this presence definition id. If you don't know it, you can retrieve the configured presence definitions using the GET /api/v2/presence/definitions in API Explorer.

    You would then have the following conditions:

    Condition 1:

    • JSON Path: id
    • Operator: In
    • Value: ["user-id-1", "user-id-2", "user-id-3"]

    Condition 2:

    • JSON Path: presence.presenceDefinition.id
    • Operator: Equals (==)
    • Value: your-secondary-presence-definition-id

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------