
Content Organizer is a feature in SharePoint that allows the end-user to create rules that will help the team automatically organize their files based on the conditions/rules created.
Since in SharePoint Online, the “Incoming Email” feature that we enjoy in SharePoint 2016, 2013, 2010 is no longer available. This guide will show you how to recreate that feature through Power Automate in SharePoint Online.
First, we will create a shared mailbox in M365/O365 that we can use in our PowerAutomate later.
Let go to our Admin Center
Go to Groups > ‘Shared mailboxes’ page > ‘Add a shared mailbox.’
Let’s now go to our Site Collection, and we will need to enable the Content Organizer Feature
Site settings > Manage site features > Content Organizer > Activate
Note: that you might encounter this error when enabling
“The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature ‘FeatureDefinition/15/0c8a9a47-22a9-4798-82f1-00e62a96006e’ (ID: ‘0c8a9a47-22a9-4798-82f1-00e62a96006e’). Hidden features cannot be auto-activated across scopes. There may be one or more visible Site Collection scoped features that auto-activate the dependent hidden feature.”
To fix this error, you will need to enable first “SharePoint Server Standard Site Collection features” and “SharePoint Server Enterprise Site Collection features” first. Both can be found in the “Site Collection Features” in the “Site Settings.”
Now, we will add a new rule to sort our Emails. We can do that by going Site Settings > Content Organizer Rules then pressing “New.”
Fill in the necessary information with the following information
Site Address: Try to find your site collection here Method : Get Uri : _api/Web/Lists/GetByTitle(‘Content Organizer Rules’)/items?$select=Title,RoutingConditions,RoutingTargetPath,RoutingPriority&$orderby=RoutingPriority desc&\$RoutingEnabled eq true Headers: “Accept” “application/json;odata=nometadata”
After the “Send an HTTP request to SharePoint” action, we will now use a “Parse Json” action:
Content: body
Schema:
{"type": "object","properties": {"value": {"type": "array","items": {"type": "object","properties": {"Title": {"type": "string"},"RoutingPriority": {"type": "string"},"RoutingConditions": {"type": "string"},"RoutingTargetPath": {"type": "string"}},"required": ["Title","RoutingPriority","RoutingConditions","RoutingTargetPath"]}}}}
After that, we will use the loop to loop inside the value and loop to each rule
After looping, we will know to get the Routing condition to upload the whole email in SharePoint. To export, we can use the “Export Email (V2)” action then use the “Create File” action of SharePoint