web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Declare/ undeclare doc...
Power Automate
Answered

Declare/ undeclare document as a record in Sharepoint online by Power Automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

Are there any ways to declare the document in Sharepoint online library as a record using automate flow?

I found it takes many steps to do it manually thus it will be much better to have the flow support doing it.

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Anonymous,


    It should be possible via the SetComplianceTag method.

     

    Below is an example

    In this case I am setting the RecordManagementLabel to a document with ID 5. Replace my tag name by the one you are using for the records. And obviously also replace the ID by a dynamic content field or you specific doc id.

     

    {
    "complianceTag":"RecordManagementLabel",
    "isTagPolicyHold":true,
    "isTagPolicyRecord":true,
    "isEventBasedTag":false,
    "isTagSuperLock":false,
    "isUnlockedAsDefault":false
    }

     

    setcompliancetag_recordsample.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Expiscornovus ,

     

    Can this flow be applied to undeclare the document as well?

    In that case, what should we modify in these steps?

  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Anonymous,

     

    Yes, that should also be possible with the same method. Have a look at this thread for an example:

    https://powerusers.microsoft.com/t5/Building-Flows/undeclare-in-place-record-from-Power-Automate/m-p/1501989/highlight/true#M167804

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard