Could you help me please, how can I set a value to custom web property in SharePoint and then get this property later?
Now, I only can get all default properties using [web url]/_api/web
.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityCould you help me please, how can I set a value to custom web property in SharePoint and then get this property later?
Now, I only can get all default properties using [web url]/_api/web
.
You can use PnP PowerShell to set a value to custom web property in SharePoint online.
Example:
Set-PnPPropertyBagValue -Key MyKey -Value MyValue
Then you can retrieve web property using:
Get-PnPPropertyBag -Key MyKey
Documentation: Set-PnPPropertyBagValue