Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Groups API question

    Posted 2 days ago
    Edited by Sylvain Richard 2 days ago

    Hi,

    I have a Data Action to get Members of a particuliar group which gets me the entitie name and entitie ID and it works fine, returning both value. 

    But if I want the same function to work on a Group Individual I must use the query /api/v2/groups/${Input.Group_ID}/individuals but it won't return me with entities.name. I'm only getting the entities.id.

    Example of test result if I use /api/v2/groups/${Input.Group_ID}/members :

    If I use this one, /api/v2/groups/${Input.Group_ID}/individuals

    So I have the id but not the name.

    Any idea how I can get the name, same as the members query?

    Thank you for your help,

    Sylvain Richard


    #DataActions

    ------------------------------
    Sylvain Richard
    Tech Lead Omni channel
    ------------------------------



  • 2.  RE: Groups API question

    Posted 2 days ago

    Greetings Sylvain:

    Unfortunately that's all you're going to get when using that particular API. To get the name for that id, you'd have to [separately] cross-reference the id against a list of users (i.e. write a separate script or use a separate tool to pull the name back.)

    Is there a particular reason why "get /api/v2/groups/{groupId}/members" is insufficient given it returns everyone associated with the Group, not just the Individuals?



    ------------------------------
    Brian T. Jones | Ascension | Senior Specialist - Technology
    ------------------------------



  • 3.  RE: Groups API question

    Posted an hour ago

    Hi,

    I'm using this function to determine who is the "On Call" person for certain department.  So I use a data table to link user with their corresponding cellphone and business is using the Group Membership to tell the system who's "On Call".

    But "get /api/v2/groups/{groupId}/members" is returning everyone in the group, so can't really know who's "On call".  

    Knowing that, I will just then makes my entities ID to be my reference key and it will work.

    Thank you for your reply!



    ------------------------------
    Sylvain Richard
    Customer Interaction Technologies - Team Leader
    ------------------------------