Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: spo list defaultcolumnvalue list #6404

Open
milanholemans opened this issue Oct 2, 2024 · 0 comments
Open

New command: spo list defaultcolumnvalue list #6404

milanholemans opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels

Comments

@milanholemans
Copy link
Contributor

Usage

m365 spo list defaultcolumnvalue list [options]

Description

Retrieves default column values set for a specific document library

Options

Option Description
-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.

Examples

List all default column values of a list specified by title

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

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 URL

m365 spo list defaultcolumnvalue list --webUrl https://contoso.sharepoint.com/sites/marketing --listUrl "/sites/marketing/Project Documents"

Default properties

  • Field
  • Value
  • Path

Additional Info

The output should look something like this:

[
  {
    "Field": "Department",
    "Path": "/sites/marketing/Shared Documents/Projects",
    "Value": "Marketing"
  },
  {
    "Field": "ProjectStatus",
    "Path": "/sites/marketing/Shared Documents/Projects/Active",
    "Value": "Active"
  },
  {
    "Field": "Region",
    "Path": "/sites/marketing/Shared Documents/Projects/International",
    "Value": "Europe"
  }
]
@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR labels Oct 2, 2024
@Jwaegebaert Jwaegebaert added help wanted hacktoberfest Issue perfect for hacktoberfest and removed needs peer review Needs second pair of eyes to review the spec or PR labels Oct 18, 2024
@milanholemans milanholemans self-assigned this Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants