spp autofillcolumn set
Applies the autofill option to the selected column
Usage
m365 spp autofillcolumn set [options]
Options
-u, --siteUrl <siteUrl>The URL of the target site.
--listTitle [listTitle]The title of the library on which to apply the model. Specify either
listTitle,listId, orlistUrlbut not multiple.--listId [listId]The ID of the library on which to apply the model. Specify either
listTitle,listId, orlistUrlbut not multiple.--listUrl [listUrl]Server or web-relative URL of the library on which to apply the model. Specify either
listTitle,listId, orlistUrlbut not multiple.-i, --columnId [columnId]ID of the column to which the autofill option will be assigned. Specify either
columnId,columnTitleorcolumnInternalName.-t, --columnTitle [columnTitle]Title of the column to which the autofill option will be assigned. Specify either
columnId,columnTitleorcolumnInternalName.--columnInternalName [columnInternalName]The internal name (case-sensitive) of the column to which the autofill option will be assigned. Specify either
columnId,columnTitleorcolumnInternalName.--prompt [prompt]The text in natural language that will be used to extract specific information or generate information from files within a SharePoint library.
--isEnabled [isEnabled]Enables or disables the autofill column feature.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
The prompt parameter is required when setting the autofill column for the first time.
Examples
Applies an autofill column on a selected column to a document library based on the list id.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
Applies an autofill column on a selected column to a document library based on the list title.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listTitle "Documents" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
Applies an autofill column on a selected column to a document library based on the list url.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listUrl '/Shared Documents' --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
Applies an autofill column on a selected column to a document library based on the list id and column title.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --prompt "Write a 2-line summary of the document"
Applies an autofill column on a selected column to a document library based on the list id and column internal name.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnInternalName "ColumnTitle" --prompt "Write a 2-line summary of the document"
Disables the autofill column for a selected column in a document library, based on the list id and column title.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled false
Reenable the autofill column for a selected column in a document library, based on the list id and column title.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true
Modifies the prompt for the autofill column
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true --prompt "Write a 1-line summary of the document"
Response
The command won't return a response on success.