Legacy Dev Forum Posts

 View Only

Sign Up

Get presence definitions by division/campaign?

  • 1.  Get presence definitions by division/campaign?

    Posted 06-05-2025 18:24

    LighthouseMike | 2022-12-16 16:15:45 UTC | #1

    Good morning and happy Friday! :smiley:

    I found out today that we would like to get a list of presences based on which campaign the current user is working on. I can get the user's division ID, and I can get a list of presence definitions, but it seems the two things are totally unrelated. There is no parameter for this in getPresencedefinitions (using the JavaScript SDK) and nothing in GetUsersMe for getting the list of presences that user can use. Of course, the customer could just tell me which campaigns get which presences and I could do this on my end, but I'm curious if there is a way to accomplish this using the API.


    Eos_Rios | 2022-12-16 17:22:23 UTC | #2

    As I understand it secondary presences exist at the organization level in the platform API. If it exists they can use it.

    Activity Codes on the other hand are tied to business unit; GET /api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes

    Agents would have limited access to those based on the MU they were a member of. https://developer.genesys.cloud/useragentman/workforcemanagement/#get-api-v2-workforcemanagement-managementunits--managementUnitId--users


    LighthouseMike | 2022-12-16 17:36:37 UTC | #3

    Okay, so it sounds like this is something I would need to handle on my own. I'm not sure what "business units", "MU's" and "activity codes" are (I'm not quite conversational in call-center-slanguage. It's a pretty lingo-heavy slanguage but I'm getting it, lol). Regardless, it sounds like user permissions could be an issue, so I guess I'll just ask which campaigns ("divisions"?) get which statuses ("presences") and handle it on my end. But still, there are a couple new APIs I didn't know about (since I haven't had a need for yet) so thanks for the info! I bet I'll find some other stuff I'll need later there. :smiley:


    John_Carnell | 2022-12-19 15:18:20 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 17674