-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds command 'spo defaultcolumnvalue list'. Closes #6404
- Loading branch information
1 parent
1a88ed2
commit 0fa8fd9
Showing
6 changed files
with
558 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 |
---|---|---|
|
@@ -116,6 +116,7 @@ const dictionary = [ | |
'unit', | ||
'url', | ||
'user', | ||
'value', | ||
'web', | ||
'webhook' | ||
]; | ||
|
110 changes: 110 additions & 0 deletions
110
docs/docs/cmd/spo/list/list-defaultcolumnvalue-list.mdx
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,110 @@ | ||
import Global from '/docs/cmd/_global.mdx'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# spo list defaultcolumnvalue list | ||
|
||
Retrieves default column values set for a specific document library | ||
|
||
## Usage | ||
|
||
```sh | ||
m365 spo list defaultcolumnvalue list [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-u, --webUrl <webUrl>` | ||
: URL of the site where the list is located. | ||
|
||
`-i, --listId [listId]` | ||
: ID of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`-t, --listTitle [listTitle]` | ||
: Title of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`--listUrl [listUrl]` | ||
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`--folderUrl [folderUrl]` | ||
: Only get default column values from a specific folder. | ||
``` | ||
|
||
<Global /> | ||
|
||
## Examples | ||
|
||
List all default column values of a list specified by title | ||
|
||
```sh | ||
m365 spo list defaultcolumnvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listTitle "Project Documents" | ||
``` | ||
|
||
List all default column values of a list specified by ID | ||
|
||
```sh | ||
m365 spo list defaultcolumnvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listId 12345678-90ab-cdef-1234-567890abcdef | ||
``` | ||
|
||
List all default column values of a list specified by server relative URL | ||
|
||
```sh | ||
m365 spo list defaultcolumnvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listUrl "/sites/marketing/Project Documents" | ||
``` | ||
|
||
List all default column values of a specific folder in a list specified by site relative URLs | ||
|
||
```sh | ||
m365 spo list defaultcolumnvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listUrl "/Project Documents" --folderUrl "/Project Documents/Archive" | ||
``` | ||
|
||
## Response | ||
|
||
<Tabs> | ||
<TabItem value="JSON"> | ||
|
||
```json | ||
[ | ||
{ | ||
"Field": "Countries", | ||
"Value": "19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2", | ||
"Path": "/sites/Marketing/Project Documents" | ||
} | ||
] | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="Text"> | ||
|
||
```text | ||
Field Value Path | ||
--------- ------------------------------------------------ ---------------------------------- | ||
Countries 19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2 /sites/Marketing/Project Documents | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="CSV"> | ||
|
||
```csv | ||
Field,Value,Path | ||
Countries,19;#Belgium|442affc2-7fab-4f33-9590-330403a579c2,/sites/Marketing/Project Documents | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="Markdown"> | ||
|
||
```md | ||
# spo list defaultcolumnvalue list --webUrl "https://contoso.sharepoint.com/sites/marketing" --listUrl "/Project Documents" | ||
|
||
Date: 20/10/2024 | ||
|
||
Property | Value | ||
---------|------- | ||
Field | Countries | ||
Value | 19;#Belgium\|442affc2-7fab-4f33-9590-330403a579c2 | ||
Path | /sites/Marketing/Project Documents | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
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.