Get a list of items on compliance hold

David 41 Reputation points
2020-10-14T20:40:48.163+00:00

I have created a hold in my Office 365 Security & Compliance center; I have use Core ED to find items and add them to a hold.

My question is: how do I get a list of these items?
I want to get the list and do something with them in code; PowerShell would be good, but anything .NET or even straight REST would work for me.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,301 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,026 Reputation points
    2020-10-15T08:23:22.2+00:00

    Hi @David ,

    Per my reasearch, there is no such code to get the statistics in the eDiscovery hold.

    We can only get the hold information with the below powershell:

    Get-CaseHoldPolicy  
    

    https://learn.microsoft.com/en-us/powershell/module/exchange/get-caseholdpolicy?view=exchange-ps

    32596-image.png

    You could use $hold.sharepointlocation to get the content location:

    32557-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.