Brandy_Elias | 2018-04-28 00:50:33 UTC | #1
This is in reference to the following post: https://developer.mypurecloud.com/forum/t/setting-the-recording-deletion-date-based-on-e-mail-receipt-date/2151
We have an app that will retroactively change a recording's delete date to 180 days after the e-mail creation date. After running the app on all of our e-mail interactions we have found that some e-mails did not get a deletion date, however we also do not have an error in the logs.
I am wondering the the Analytics API will pull every single e-mail in the system using this query in the .NET SDK:
<code> var query = new ConversationQuery(); query.SegmentFilters = new List<AnalyticsQueryFilter>(new AnalyticsQueryFilter[] { new AnalyticsQueryFilter( Type: AnalyticsQueryFilter.TypeEnum.And, Predicates: new List<AnalyticsQueryPredicate>( new AnalyticsQueryPredicate[] { new AnalyticsQueryPredicate( Type: AnalyticsQueryPredicate.TypeEnum.Dimension, Dimension: AnalyticsQueryPredicate.DimensionEnum.Mediatype, Value: "email" ) } ) ) }); </code>
If so, the next question would be if there are any other reasons the recording would not get a deletion date set. Again, no errors were generated and we are catching all exceptions.
tim.smith | 2018-05-01 15:26:46 UTC | #2
That query should get all emails in the interval specified.
Are you saying that you're changing the deletion date on a conversation and PureCloud is ignoring the change? Or are you saying that Analytics is missing conversations in the results? Keep in mind that the detail queries are paged, so you would need to be sure you get all the pages.
Brandy_Elias | 2018-05-01 15:48:13 UTC | #3
I am paging through all records and setting the deletion date for each e-mail record. It works for most records just not all. Some get skipped and wasn't sure why (no errors generated) but I did want to be sure I was grabbing all the e-mails and it looks like I am.
tim.smith | 2018-05-01 15:48:31 UTC | #4
If you're setting the deletion date on a conversation successfully (the API returns success) and it's being ignored, please open a ticket with PureCloud Support. That sounds like the API is functioning, but there's some issue with the product.
system | 2018-06-01 16:00:39 UTC | #5
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: 2801