Forum Discussion
Aynes Bekir
Aug 10, 2018Copper Contributor
Custom columns to automatically appear in the Documents section
Hi All, I have created a PowerShell script that adds custom columns, join a site to the Project Hub and set regional settings. However, I am experiencing issues with the custom columns. I can se...
Aug 10, 2018
Check the Site scripts documentation where you can see how to add columns to a list / document library: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview and this is the JSON schema: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema
Aug 10, 2018
And to be more precise, you will have to use the addSiteColumn operation:
{
"verb": "addSiteColumn",
"internalName": "siteColumnUser"
}
{
"verb": "addSiteColumn",
"internalName": "siteColumnUser"
}
- Aynes BekirAug 10, 2018Copper Contributor
Great, thank you, will give it a go.