Get a list of items on compliance hold

David 41 Reputation points

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.

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

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 17,996 Reputation points

    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:



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


    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.