In SharePoint, effective organisation is key to productivity, and one of the features that can significantly enhance your experience is folder colour customisation. While SharePoint has long been a powerful tool for document management and collaboration, folder colour options allow users to personalise their libraries and make navigating content even easier. While SharePoint provides a direct way to change folder colours through its interface, but you can automate this process using Power Automate.
Why Folder Colours Matter?
When working in a large SharePoint document library, finding the right folder quickly can become a challenge. By default, SharePoint presents all folders with a neutral appearance(Yellow), but adding colours to folders can:
- Improve Visibility: Colours help folders stand out, making it easy to spot the one.
- Increase Organisation: Coloured folders allows teams to visually categorise content.
- Boost Collaboration: With coloured folders, teams can quickly recognise and differentiate between various types of content, improving collaboration and reducing confusion.
In this post, we will walk you through how to set SharePoint folder colour using Power Automate, so you can add a custom touch to your document libraries and improve the user experience.
If you right-click on a folder and select the “Folder colour” option from the context menu, you will be presented with a grid of 16 colours, allowing you to choose the desired colour for your folder. This grid contains predefined colours in the code, which we can leverage in our Power Automate flow to automate the colour-coding process for SharePoint folders.
SharePoint Folder Colour Code-
Colour | Colour Code |
---|---|
Yellow | 0 |
Dark red | 1 |
Dark orange | 2 |
Dark green | 3 |
Dark teal | 4 |
Dark blue | 5 |
Dark purple | 6 |
Dark pink | 7 |
Grey | 8 |
Light red | 9 |
Light orange | 10 |
Light green | 11 |
Light teal | 12 |
Light blue | 13 |
Light purple | 14 |
Light pink | 15 |
URI Path-
_api/foldercoloring/createfolder(DecodedUrl=@a1,overwrite=@a2)?@a1=’@{outputs(‘New_Folder_Path’)}’&@a2=false
Headers-
{
“Accept”: “application/json;odata=verbose”,
“Content-Type”: “application/json;odata=verbose”
}
Body-
{
“coloringInformation”:
{ “__metadata”: { “type”: “SP.FolderColoringInformation” },
“ColorHex”: “1”
}
}
Flow design-
Outcome-
Conclusion
Setting the color of SharePoint folder using Power Automate is a great way to improve organization and make SharePoint document library more visually appealing. With these steps, you’ll be able to design your flow and visually categorize your folders in a way that makes navigating your SharePoint library faster and more intuitive.
Give it a try today and start organizing your SharePoint folders with color!