Forum Discussion
Retention Policies DPT and RPT need help to understand
Items within a folder inherit the tag applied to a folder, or the default tag if no such tag exists. Tagging individual items overrides this behavior, and items with "personal" tags will have and indicator in Outlook's info bar.
You can get a list of items expiring soon, but you will need to use the EWS API for that, as "pure" PowerShell does not cover item-level stats/operations.
I understand that . But let me rephrase my question.
Can an item have two tags, one for "move to archive" and another for "delete"?
In my case, that I described in my post, I have items in Inbox folder that inherit RPT "2-day delete" and they are considered as tagged. But now I apply DPT "1-day move to archive" to already tagged items.
That is what confuses me: "..Items within a folder inherit the tag applied to a folder, or the default tag if no such tag exists..."
I realize that my test proves that an item can have 2 tags but before applying retention policies to the production mailboxes I would like to get a confirmation from experts.
EDIT:
Two DPTs (one "move to archive" and second "delete") can be applied to untagged items. So basically it confirms that 2 tags can be applied to an item. And now just DPT and RPT (of different actions) need to be confirmed.
- VasilMichevFeb 05, 2020MVP
Yes, you can have two tags with different actions applied. That's why in clients you see them as "Archive policy" and "Retention policy". And it's also used for scenarios where you want to clean up your primary mailbox but keep the items for a while longer in the archive.
- Leon KuperFeb 05, 2020Copper Contributor
If I have one retention policy which contains archive tags (DPT or/and personal) and delete tags (DPT or/and RTP or/and personal) and only one policy can be applied to the mailbox, I do not see separate policies as mentioned in Outlook. I understand what Outlook means by these separate policies but it would be much more clear if documentation explained this correlation between policy tags and Outlook different policies.
And I understand how it should work in theory....
But, unfortunately, my test eventually failed.
Some messages were moved to the Online Archive but they were not deleted after "Inbox 2-day delete" RPT and they are still in Online Archive/Inbox.
Some messages are still in the account mailbox/Inbox, though "1-day move to archive" DPT is long past due.
How can I troubleshoot this problem?
UPDATE:
SpoilerPS C:\WINDOWS\system32> Get-RetentionPolicyTag -Types Inbox,All | Format-Table Name,Type,RetentionEnabled,AgeLimitForRetention,RetentionAction -AutoSize Name Type RetentionEnabled AgeLimitForRetention RetentionAction ---- ---- ---------------- -------------------- --------------- 2 Day Delete Inbox True 2.00:00:00 PermanentlyDelete Default 1 day move to archive All True 1.00:00:00 MoveToArchive Default 2 year move to archive All True 730.00:00:00 MoveToArchive Default 1 year move to archive All True 365.00:00:00 MoveToArchiveSpoilerGet-RetentionPolicy -Identity "Ci....y Policy" | Format-List RunspaceId : a7e4d2d6-31d0-4e12-b6ab-85745b5d2400 RetentionId : cd9df022-a8f4-4eeb-883f-fbf0d269259e RetentionPolicyTagLinks : {Default 1 day move to archive, 2 Day Delete, 1 Month Delete, Personal 1 year move to archive...}PS C:\WINDOWS\system32> Get-RetentionPolicyTag -Mailbox "...." -Types Inbox,All | Format-Table Name,Type,RetentionEnabled,AgeLimitForRetention,RetentionAction -AutoSize Name Type RetentionEnabled AgeLimitForRetention RetentionAction ---- ---- ---------------- -------------------- --------------- Default 1 day move to archive All True 1.00:00:00 MoveToArchiveIf this is the right way to troubleshot, it seems that the Inbox RPT tag has not been applied to the mailbox.
- VasilMichevFeb 05, 2020MVP
When using -Mailbox parameter, RPTs will NOT be returned. All you need to check is which policy is assigned to a given mailbox, you can get the full set of tags therein.