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 view field set #2059

Closed
appieschot opened this issue Jan 11, 2021 · 5 comments
Closed

New command: spo list view field set #2059

appieschot opened this issue Jan 11, 2021 · 5 comments

Comments

@appieschot
Copy link
Member

Usage

spo list view field set

Description

Updates existing column in an existing view (eg. move to a specific position).

Options

Complete the table below with the options used on this command. A short (single character) and long version of the option should be provided along with [optional] or <required> parameters.

Option Description
-u, --webUrl<webUrl> URL of the site where the list is located
--listId [listId] ID of the list where the view is located. Specify listTitle or listId but not both
--listTitle [listTitle] Title of the list where the view is located. Specify listTitle or listId but not both
--viewId [viewId] ID of the view to update. Specify viewTitle or viewId but not both
--viewTitle [viewTitle ] Title of the view to update. Specify viewTitle or viewId but not both
--fieldId [fieldId] Title of the view to update. Specify viewTitle or viewId but not both
--fieldTitle [fieldTitle] The case-sensitive internal name or display name of the field to remove. Specify fieldId or fieldTitle but not both
--fieldPosition <fieldPosition> The zero-based index of the position for the field.
Option Description
-o, --option <option> option
-o, --output [output] Output type. json,text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Additional Information

Respeced based on #733.
See https://github.com/pnp/cli-microsoft365/blob/master/src/m365/spo/commands/list/list-view-field-add.ts on how to move a field using the moveviewfieldto endpoint.

@waldekmastykarz
Copy link
Member

Is fieldPosition intended to be required?

@appieschot
Copy link
Member Author

@waldekmastykarz my reasoning was that to update a field to a new position we require that position, did I mis anything and is there another way to do so?

@waldekmastykarz
Copy link
Member

Ah sorry, I was looking at the command name spo list view field set and assumed it allows you to do other modifications than just repositioning the field. In that context, making this option required makes perfect sense.

@aakashbhardwaj619
Copy link
Contributor

Hey guys, can I take this up? It's been a while since I did a command 😊

@waldekmastykarz
Copy link
Member

Awesome! All yours! Appreciate your help and glad to have you back! 👏

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