matthew | 2017-10-09 21:37:55 UTC | #1
A new customer is asking about the difference between reporting via the API for 'communicate' and 'full' agents.
I don't know if the 'communicate' agent data is stored in the purecloud API in the same way as a 'full' agent is.
Can you clarify this or provide a link which has the information?
thanks
tim.smith | 2017-10-09 21:39:22 UTC | #2
There aren't APIs specific to licenses, to my knowledge. Can you elaborate on what data you're trying to get specifically?
tim.smith | 2017-10-31 15:12:37 UTC | #4
Can you provide a correlation ID from the working request from mypurecloud.com.au?
For the non-working example, you're sending a query filter with a query clause, but no predicate. I would expect the error you're getting based on the filter you're sending.
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/c0f04f1ebdb420f21999730aa230e7287dadba05.png" width="442" height="500">
matthew | 2017-11-01 16:18:04 UTC | #5
yes , I found the reason for Error calling PostAnalyticsConversationsAggregatesQuery--"exception 400" , it is that the Predicates in query.Filter.Clauses are null . why i use purecloudnowdev tenant account to login AnalyticsApi coming to that query.Filter.Clauses.Count > 0,but the Predicates of sub Clause in query.Filter.Clauses == 0. is that normal ?
tim.smith | 2017-11-01 15:00:21 UTC | #6
I'm not sure how you've written your application, but you should debug it to figure out why you're not sending a filter for some requests. Once you send a valid request/filter, the request should work correctly.
rolin | 2017-11-02 08:32:10 UTC | #7
I tested follow program and found some errrors. when use NotificationHandler to add the Subscriptions ,then there is a exception "error "500". internal.server.error .The server encountered an unexpected condition which prevented it from fulfilling the request. " or other types of errors
NotificationHandler h = new NotificationHandler(); foreach (var g in groups) { foreach (var u in g.Users) { if (!users.Contains(u.Id)) { subscriptions.Add(new Tuple<string,Type>("v2.users."+ u.Id + ".workforcemanagement.historicaladherencequery", typeof(WfmHistoricalAdherenceCalculationsCompleteNoticeNotification))); } } } h.AddSubscriptions(subscriptions);
when use another pair username and password to config adapter, use NotificationHandler without errors ,but running to workforceManagementApi.PostWorkforcemanagementManagementunitHistoricaladherencequery(MuId, body) An error occurred, exception "500" .what is the reason? thanks.
rolin | 2017-11-02 08:41:22 UTC | #8
Every time using WorkforceManagementApi to call PostWorkforcemanagementManagementunitHistoricaladherencequery() function will trigger a delegate event --NotificationReceived() ? A continuous cycle of 5 calls to PostWorkforcemanagementManagementunitHistoricaladherencequery() will trigger the 5 event" NotificationReceived"? thanks for your explanations.
tim.smith | 2017-11-02 14:23:35 UTC | #9
rolin, post:7, topic:1923
An error occurred, exception "500" .what is the reason?
Can you provide the correlation ID from the response? Thanks.
rolin | 2017-11-03 01:07:38 UTC | #10
now use WorkforceManagementApi to call PostWorkforcemanagementManagementunitHistoricaladherencequery(MuId, body) function with follow error: ErrorContent : {"status":403,"code":"missing.any.permissions","message":"Unable to perform the requested action. You must have at least one of the following permissions assigned: [wfm:historicalAdherence:view]"} Message : Error calling PostWorkforcemanagementManagementunitHistoricaladherencequery: {"status":403,"code":"missing.any.permissions","message":"Unable to perform the requested action. You must have at least one of the following permissions assigned: [wfm:historicalAdherence:view]"} <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/02777d329cf35c3d07b7cb5c10c85babdd5eeb14.png" width="690" height="122"> what is wrong? thanks
rolin | 2017-11-03 02:14:14 UTC | #11
what's correlation ID ? Could i get correlation id from response of calling GetWorkforcemanagementAdherenceAsyncWithHttpInfo(List<string> userId) of WorkforceManagementApi? or correlation id in response from PostWorkforcemanagementManagementunitHistoricaladherencequery() ?
rolin | 2017-11-03 08:53:32 UTC | #12
hi , I have updated PureCloudPlatform.Client.V2 package to lastest versioin(20.0.0.1) ,run pragram also with follow exception: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/f78815e1a5e23684b5125f6fef143c79103ce5ca.png" width="690" height="141">
matthew | 2017-11-03 12:55:20 UTC | #13
Rolin, looks like wfm permissions have not been granted for this user you are using.
please use an account which has been granted the correct permissions.
Matthew
system | 2017-12-04 12:55:23 UTC | #14
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: 1923