How to Set Column Default Value in SharePoint Library?

While working on a Project Management System, I used a SharePoint document library to store and manage files for different projects. To keep everything organised, I created separate folders for each project in the library. I also added a column called Project Code to identify which files belong to which project.

Later, when different teams started uploading their files, I noticed that each project folder needed its own default Project Code. But when I tried setting a default value, it applied to the entire library rather than a single folder. That’s when I found out about the Column Default Value Settings feature in SharePoint.

In this tutorial, I will show you how to set column default value for specific folders in a SharePoint document library.

Column Default Value Settings in SharePoint Library

For this example, I created a SharePoint document library named Power Platform Projects. Inside the library, I added folders for different projects:

Then, I created a new column named Project Code (Single line of text) in the library.

This column stores a unique code for each project, for example:

  • Power Apps Development -> PAD001
  • Power Automate Integration -> PAI002
  • Power BI Dashboard -> PBD003
  • Power Virtual Agents Chatbot -> PVAC004
SharePoint Online list column default Value Setting

Now, instead of entering the Project Code manually every time someone uploads a file into a folder, we will use Column Default Value Settings in SharePoint to automatically apply the correct Project Code for each folder.

Now follow the steps below:

  1. Go to your SharePoint site -> open the Power Platform Projects document library. Click the Settings icon (top right corner) -> choose Library settings.
Library setting Column default value settings
  1. In the Library Settings page, under General Settings, click Column default value settings. This opens a page where you can assign default column values based on folders.
SharePoint document library showing gear icon and Library settings option
  1. On the left-hand side, you will see a tree view showing all our folders. Click on the first folder, Leave Management System.
Library Settings page in SharePoint with Columns and Metadata navigation options
  1. Click the column you want to add the default value. Then it will open a pop-up where you can choose “Use this default value“, then put the value and click ok.
Clicking on Column default value settings under Library Settings in SharePoint
  1. Now, repeat the same process for the remaining folders:
    • Expense Claim Automation -> ECA002
    • SharePoint Chatbot -> SCB003
    • Client Feedback Dashboard -> CFD004

After entering the values, click Save to apply the settings.

Configuring default column values for a SharePoint document library

Note: When you add a default value, a green color-setting icon will appear.

Now it’s time to test:

  1. Go back to your Power Platform Projects library.
  2. Upload a file inside any folder (for example, Leave Management System).
Selecting a specific folder in SharePoint to apply unique default column values

You will see that the Project Code column automatically fills with the folder’s default value, like LMS001.

Setting default metadata values for multiple columns in SharePoint folder

Now, whenever someone uploads a file into any project folder, SharePoint automatically fills in the Project Code column based on that folder’s default setting.

Also, you may like the following tutorials:

Live Webinar

Build an IT Help Desk App using Power Apps and Power Automate

Join this free live session and learn how to build a fully functional IT Help Desk application using Power Apps and Power Automate—step by step.

📅 29th Apr 2026 – 10:00 AM EST | 7:30 PM IST

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial

FREE Power Platform Tutorial PDF

Download 135+ Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…