You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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?
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.
Usage
spo list view field set
Description
Updates existing column in an existing view (eg. move to a specific position).
Options
-u, --webUrl<webUrl>
--listId [listId]
listTitle
orlistId
but not both--listTitle [listTitle]
listTitle
orlistId
but not both--viewId [viewId]
viewTitle
orviewId
but not both--viewTitle [viewTitle ]
viewTitle
orviewId
but not both--fieldId [fieldId]
viewTitle
orviewId
but not both--fieldTitle [fieldTitle]
fieldId
orfieldTitle
but not both--fieldPosition <fieldPosition>
-o, --option <option>
-o, --output [output]
json,text
. Defaulttext
--verbose
--debug
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.The text was updated successfully, but these errors were encountered: