Open
Description
Usage
m365 spp autofillcolumn set [options]
Description
Applies the autofill option to the selected column.
Options
Option | Description |
---|---|
-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 , or listUrl but not multiple. |
--listId [listId] |
The ID of the library on which to apply the model. Specify either listTitle , listId , or listUrl but not multiple. |
--listUrl [listUrl] |
Server or web-relative URL of the library on which to apply the model. Specify either listTitle , listId , or listUrl but not multiple. |
-c, --column <column> |
ID of the column to which the autofill option will be assigned. |
--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. |
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/ContentCenter" --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/ContentCenter" --listTitle "Documents" --column "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/ContentCenter" --listUrl '/Shared Documents' --column "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document"
Disables the autofill column on a selected column in a document library based on the list URL.
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/ContentCenter" --listUrl '/Shared Documents' --column "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --isEnabled false
Additional Info
This endpoint should be used -> _api/machinelearning/SetSyntexPoweredColumnPrompts
with body:
{
"docLibId": "{8a6027ab-c584-4394-ba9c-3dc4dd152b65}",
"syntexPoweredColumnPrompts": "[{\"columnId\":\"13c5ebaa-a843-468f-9706-660cd3fc9011\",\"columnName\":\"Education\",\"prompt\":\" Prompt\".\",\"isEnabled\":true}]"
}
link
Currently, autofill columns are available for the following column data types:
- Text
- Multiple lines of text
- Number
- Yes/No
- Date and time
- Choice
- Hyperlink
- Currency