Sathishkumar_J | 2023-08-28 07:51:01 UTC | #1
Team,
We are not gettting values for key columns while querying Agent Schedules API instance. Can you assist?
postworkforcemanagementbusinessunitweekscheduleagentschedulesquery()
BUSINESSUNITID = NULL for every record WEEK_ID = NULL for every record METADATACREATEDBYID = NULL for every record METADATA_DATECREATED = NULL for every record WORKPLANMANAGEMENTUNITID = NULL for every record SCHEDULE = NULL for every record
mostafaawad | 2023-08-28 08:48:51 UTC | #2
SathishkumarJ, post:1, topic:21719
postworkforcemanagementbusinessunitweekscheduleagentschedules_query
Have you followed/tried the sample code in the SDK documentation
tim.smith | 2023-08-28 13:41:36 UTC | #3
If you believe the API responses are missing data, please open a case with Genesys Cloud Care to investigate as we do not have access to your org's data via the forum.
brian.trezise | 2023-08-28 14:32:36 UTC | #4
I believe you're referring to this route here: POST /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query As already mentioned above I can't debug your specific issue in the forums but I can give you some general tips:
- This route is a sometimes async route. This means the data can come back via a notification if the request takes too long, via this topic: v2.workforcemanagement.users.{id}.schedules.query. If your initial api response has a state of "Processing" then you need to look for the notification to receive the response. It is recommended to subscribe to this notification topic prior to attempting to make your schedule query. Note the user ID on this topic is the oauth client ID if querying via an oauth client.
- We don't typically send back data that you provided in your request, with the understanding that you have that information on hand already. So we don't even include business unit ID, week ID, schedule ID, etc
If you need more specific help please reach out to Care as Tim said above.
Sathishkumar_J | 2023-08-28 15:15:17 UTC | #5
Thanks for your inputs Mostafa, Tim and Brian. Will open a case with Genesys Cloud care as suggested.
Cheers, Sathish
system | 2023-09-28 15:15:18 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21719