Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Get Agent Schedule from WEM using Data Action

    Posted 07-12-2024 09:12

    Hello, I was just wondering if anyone has used Data Actions to pull an agent schedule from WEM. I am trying to create an IVR that will allow the agent to hear their schedule when they call in and am having trouble configuring the data action for it. 

    /api/v2/workforcemanagement/businessunits/{businessunits}/agentschedules/search

    {
      "type": "object",
      "properties": {
        "startDate": {
          "type": "string"
        },
        "endDate": {
          "type": "string"
        },
        "userIds": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }

    {
      "message": "The request could not be understood by the server due to malformed syntax.",
      "code": "bad.request",
      "status": 400,
      "messageParams": {},
      "contextId": "af3961e9-2147-4163-a8d8-0da322152918",
      "details": [
        {
          "errorCode": "ACTION.PROCESSING"
        }
      ],
      "errors": [
        {
          "message": "Failed due to malformed requestUrlTemplate. Illegal character in path at index 69: https://api.usw2.pure.cloud/api/v2/workforcemanagement/businessunits/{businessunits}/agentschedules/search",
          "code": "BAD_REQUEST",
          "status": 400,
          "messageParams": {},
          "details": [],
          "errors": []
        }
      ]
    }

    #API/Integrations

    ------------------------------
    Dietrich Van Horn
    America First Credit Union
    ------------------------------


  • 2.  RE: Get Agent Schedule from WEM using Data Action

    GENESYS
    Posted 07-15-2024 12:27

    Hello Dietrich, 

     

    Have you tried building this API call out in our dev center here and posting into the data action? 

     

    I also see that you have /api/v2/workforcemanagement/businessunits/{businessunits}/agentschedules/search

     

    The correct API call is /api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search

     

    This maybe the issue as well. But I would follow the link and build out the call in the Dev center and copy/pasta the code into the data action. 



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources