Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Secondary Presense

    Posted 09-05-2022 08:04
    No replies, thread closed.

    /api/v2/presencedefinitions gives the list of presences defined by a system administrator for the organization in addition to the primary presences.

    here is the postman's response.

    I have secondary level presence entries against the Away and Break. how I can get the secondary level of presence by using API.

    {
        "entities": [
            {
                "id": "10575c82-1eea-42ab-8d54-ccd42fa9e384",
                "languageLabels": {
                    "en_US": "Out Of Office",
                    "en": "Out Of Office"
                },
                "systemPresence": "Away",
                "deactivated": false,
                "primary": false,
                "createdBy": {
                    "id": "a84e554a-b9ca-471a-bd2c-23f2c2981f10",
                    "selfUri": "/api/v2/users/a84e554a-b9ca-471a-bd2c-23f2c2981f10"
                },
                "createdDate": "2022-08-30T20:05:24.179Z",
                "modifiedBy": {
                    "id": "a84e554a-b9ca-471a-bd2c-23f2c2981f10",
                    "selfUri": "/api/v2/users/a84e554a-b9ca-471a-bd2c-23f2c2981f10"
                },
                "modifiedDate": "2022-08-30T20:05:24.179Z",
                "selfUri": "/api/v2/presencedefinitions/10575c82-1eea-42ab-8d54-ccd42fa9e384"
            },
            {
                "id": "227b37e2-f1d0-4dd0-8f50-badd7cf6d158",
                "languageLabels": {
                    "en_US": "Break"
                },
                "systemPresence": "Break",
                "deactivated": false,
                "primary": true,
                "createdBy": {
                    "id": "259e6de0-7a34-414a-aee5-03f383b16155",
                    "selfUri": "/api/v2/users/259e6de0-7a34-414a-aee5-03f383b16155"
                },
                "createdDate": "2022-08-18T15:35:23.252Z",
                "modifiedBy": {
                    "id": "259e6de0-7a34-414a-aee5-03f383b16155",
                    "selfUri": "/api/v2/users/259e6de0-7a34-414a-aee5-03f383b16155"
                },
                "modifiedDate": "2022-08-18T15:35:23.252Z",
                "selfUri": "/api/v2/presencedefinitions/227b37e2-f1d0-4dd0-8f50-badd7cf6d158"
            },
            {
                "id": "31fe3bac-dea6-44b7-bed7-47f91660a1a0",
                "languageLabels": {
                    "en_US": "Busy"
                },
                "systemPresence": "Busy",
                "deactivated": false,
                "primary": true,
                "createdBy": {
                    "id": "259e6de0-7a34-414a-aee5-03f383b16155",
                    "selfUri": "/api/v2/users/259e6de0-7a34-414a-aee5-03f383b16155"
                },
                "createdDate": "2022-08-18T15:35:23.252Z",
                "modifiedBy": {
                    "id": "259e6de0-7a34-414a-aee5-03f383b16155",
                    "selfUri": "/api/v2/users/259e6de0-7a34-414a-aee5-03f383b16155"
                },
                "modifiedDate": "2022-08-18T15:35:23.252Z",
                "selfUri": "/api/v2/presencedefinitions/31fe3bac-dea6-44b7-bed7-47f91660a1a0"
            }
            
        ],
        "pageSize": 25,
        "pageNumber": 1,
        "total": 12,
        "firstUri": "/api/v2/presencedefinitions?pageSize=25&pageNumber=1",
        "lastUri": "/api/v2/presencedefinitions?pageSize=25&pageNumber=1",
        "selfUri": "/api/v2/presencedefinitions?pageSize=25&pageNumber=1",
        "pageCount": 1
    }

    #Unsure/Other

    ------------------------------
    uzair anwar
    Expertflow Pvt Ltd
    ------------------------------


  • 2.  RE: Secondary Presense

    Posted 09-06-2022 13:28
    No replies, thread closed.
    Hi Uzair,

    GET /api/v2/presencedefinitions is supposed to return both primary and secondary presence definitions. 

    I called that endpoint from Postman in my Org and was able to see a secondary presence (configured below Break):

    Based on the JSON you provided, I could say that "Out of Office" is a Secondary status you have under the Away System Presence for the Org you were accessing, which means the API Endpoint is working as intended.

    Since you are using Postman, maybe it is worth double checking if you are using an OAuth token from the actual Organization where you have the Secondary statuses you mentioned.


    Hope that helps,

    ------------------------------
    Rafael Marciano BELISRCIANO
    Genesys - Employees
    ------------------------------



  • 3.  RE: Secondary Presense

    Posted 09-14-2022 01:11
    No replies, thread closed.
    Thank you for your response I was expecting all secondary presence against specific primary presence as an array collection.

    ------------------------------
    uzair anwar
    Expertflow Pvt Ltd
    ------------------------------