Setting a Retention Label in SharePoint from Microsoft Flow

Reading Time: 2 minutes

As time goes on, more capabilities are being introduced to automatically set a retention label on a document rather than having to rely on the end-user to manually set it. As of this date, options include defaulting a retention label at a document library level, folder level, or auto-applying based on either a queryable managed property or a content type.

There still may be times when you need to set a retention label based on a more complex set of conditions not falling into any of the above categories. On the Content Services Roadmap shared at Ignite 2018, there was mention of an action in Microsoft Flow to set a Retention label at a Later time. (red star)

Roadmap - Content Services

Until then, here is how you can set a retention label using a Send an HTTP Request to SharePoint action in Microsoft Flow: (this example is for a non-record label)
Flow Action

Eventually, this capability will be available as an action in Microsoft Flow. Until that time, this is how you can do it. Note: I haven’t tested all of the above property settings for record and event-based labels.

Thanks for reading!


Image by LUM3N from Pixabay


  1. Joanne,
    Thanks for this wonderful tip. You mentioned in the post that currently options exist to apply default labels to libraries and folders. I am able to find the option to apply the label defaults to libraries but cannot find any option to apply labels automatically to folders inside a library. Is there a specific setting or trick I need to utilize to apply a default label to a folder?

    1. If you set the retention label on the folder thru the UI… detail pane… The documents within will get the label. There are some exceptions but that’s the main behavior.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.