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 defaultvalue list #6404

Open
milanholemans opened this issue Oct 2, 2024 · 1 comment · May be fixed by #6442
Open

New command: spo list defaultvalue list #6404

milanholemans opened this issue Oct 2, 2024 · 1 comment · May be fixed by #6442

Comments

@milanholemans
Copy link
Contributor

milanholemans commented Oct 2, 2024

Usage

m365 spo list defaultvalue 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.
--folderUrl [folderUrl] Only get default column values from a specific folder.

Examples

List all default column values of a list specified by title

m365 spo list defaultvalue 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 defaultvalue 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 defaultvalue 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:

[
  {
    "fieldName": "Department",
    "folderUrl": "/sites/marketing/Shared Documents/Projects",
    "fieldValue": "Marketing"
  },
  {
    "fieldName": "ProjectStatus",
    "folderUrl": "/sites/marketing/Shared Documents/Projects/Active",
    "fieldValue": "Active"
  },
  {
    "fieldName": "Region",
    "folderUrl": "/sites/marketing/Shared Documents/Projects/International",
    "fieldValue": "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
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Oct 20, 2024
@milanholemans milanholemans linked a pull request Oct 20, 2024 that will close this issue
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Oct 20, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Oct 20, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Oct 20, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Oct 20, 2024
@Adam-it Adam-it removed the hacktoberfest Issue perfect for hacktoberfest label Nov 3, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Nov 5, 2024
@milanholemans milanholemans changed the title New command: spo list defaultcolumnvalue list New command: spo list defaultvalue list Dec 21, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Dec 21, 2024
@milanholemans
Copy link
Contributor Author

Aligned spec with discussion held in #6505

milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants