How to set SharePoint Folder Colour Using Power Automate.

SP Folder

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:

  1. Improve Visibility: Colours help folders stand out, making it easy to spot the one.
  2. Increase Organisation: Coloured folders allows teams to visually categorise content.
  3. 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.

Folder Colour

SharePoint Folder Colour Code-

ColourColour Code
Yellow0
Dark red1
Dark orange2
Dark green3
Dark teal4
Dark blue5
Dark purple6
Dark pink7
Grey8
Light red9
Light orange10
Light green11
Light teal12
Light blue13
Light purple14
Light pink15

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-

folder colour flow

Outcome-

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!