-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web EffectiveBasePermissions check added before adding new property docs added confirm var cleanup propertybag folder desc update
- Loading branch information
1 parent
0d82e4a
commit 9cd9cd1
Showing
6 changed files
with
1,364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# spo propertybag set | ||
|
||
Sets the value of the specified property from the property bag. Adds the property if does not exist | ||
|
||
## Usage | ||
|
||
```sh | ||
spo propertybag set [options] | ||
``` | ||
|
||
## Options | ||
|
||
Option|Description | ||
------|----------- | ||
`--help`|output usage information | ||
`-u, --webUrl <webUrl>`|The URL of the site from which the property should be set | ||
`-k, --key <key>`|Key of the property to be set. Case-sensitive | ||
`-v, --value <value>`|Value of the property to be set | ||
`-f, --folder [folder]`|Site relative URL of the folder which the property should be set | ||
`-o, --output [output]`|Output type. `json|text`. Default `text` | ||
`--verbose`|Runs command with verbose logging | ||
`--debug`|Runs command with debug logging | ||
|
||
!!! important | ||
Before using this command, connect to a SharePoint Online site, using the [spo connect](../connect.md) command. | ||
|
||
## Remarks | ||
|
||
To set property bag value, you have to first connect to a SharePoint | ||
Online site using the [spo connect](../connect.md) command, eg. `spo connect https://contoso.sharepoint.com`. | ||
|
||
## Examples | ||
|
||
Sets the value of the _key1_ property located in site _https://contoso.sharepoint.com/sites/test_ | ||
|
||
```sh | ||
spo propertybag set --webUrl https://contoso.sharepoint.com/sites/test --key key1 --value value1 | ||
``` | ||
|
||
Sets the value of the _key1_ property located in site root folder _https://contoso.sharepoint.com/sites/test_ | ||
|
||
```sh | ||
spo propertybag set --webUrl https://contoso.sharepoint.com/sites/test --key key1 --value value1 --folder / | ||
``` | ||
|
||
Sets the value of the _key1_ property located in site document library _https://contoso.sharepoint.com/sites/test_ | ||
|
||
```sh | ||
spo propertybag set --webUrl https://contoso.sharepoint.com/sites/test --key key1 --value value1 --folder '/Shared Documents' | ||
``` | ||
|
||
Sets the value of the _key1_ property located in folder in site document library _https://contoso.sharepoint.com/sites/test_ | ||
|
||
```sh | ||
spo propertybag set --webUrl https://contoso.sharepoint.com/sites/test --key key1 --value value1 --folder '/Shared Documents/MyFolder' | ||
``` | ||
|
||
Sets the value of the _key1_ property located in site list _https://contoso.sharepoint.com/sites/test_ | ||
|
||
```sh | ||
spo propertybag set --webUrl https://contoso.sharepoint.com/sites/test --key key1 --value value1 --folder /Lists/MyList | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.