Forum Discussion
Yuri-1511
Oct 28, 2024Copper Contributor
Default value for the custom column which set by SharePoint REST API does not show
Default value for the custom column which set by SharePoint REST API with Power Automate does not show on the document library when upload a file.
Here are the steps to reproduce the issue:
- Create a new Modern team site collection not connected to M365 group by using PowerShell command ( New-PnPSite -Type TeamSiteWithoutMicrosoft365Group).
- Create a new list in the new site and open list settings. Advanced settings -> Select Yes to Allow management of content types and OK.
- At the settings page, select Add from existing site content types from Content Types.
- Add a custom content type and select OK. This will add custom columns in the Columns section at the settings page.
- Create a new document library and add custom columns you created at the step 4.
- Set the default value for the column by using SharePoint REST API.
It will set the default value; however, when upload a file to the document library, the default value does not show.
The default value will only show with following manual steps after the step 6.
Go to Site Columns -> Edit Column for the custom columns and click OK button without changing anything. The below dialog pops up and click OK.
Is there anything I can do in order to show the default value in the document library when upload a file without any manual steps?
No RepliesBe the first to reply