|
| 1 | +import Global from '/docs/cmd/_global.mdx'; |
| 2 | +import Tabs from '@theme/Tabs'; |
| 3 | +import TabItem from '@theme/TabItem'; |
| 4 | + |
| 5 | +# spp autofillcolumn apply |
| 6 | + |
| 7 | +Applies the autofill option to the selected column |
| 8 | + |
| 9 | +## Usage |
| 10 | + |
| 11 | +```sh |
| 12 | +m365 spp autofillcolumn apply [options] |
| 13 | +``` |
| 14 | + |
| 15 | +## Options |
| 16 | + |
| 17 | +```md definition-list |
| 18 | +`-u, --siteUrl <siteUrl>` |
| 19 | +: The URL of the target site. |
| 20 | + |
| 21 | +`--listTitle [listTitle]` |
| 22 | +: The title of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. |
| 23 | + |
| 24 | +`--listId [listId]` |
| 25 | +: The ID of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. |
| 26 | + |
| 27 | +`--listUrl [listUrl]` |
| 28 | +: Server or web-relative URL of the library on which to apply the model. Specify either `listTitle`, `listId`, or `listUrl` but not multiple. |
| 29 | + |
| 30 | +`-i, --columnId [columnId]` |
| 31 | +: ID of the column to which the autofill option will be assigned. |
| 32 | + |
| 33 | +`-t, --columnTitle [columnTitle]` |
| 34 | +: Title of the column to which the autofill option will be assigned. |
| 35 | + |
| 36 | +`--prompt <prompt>` |
| 37 | +: The text in natural language that will be used to extract specific information or generate information from files within a SharePoint library. |
| 38 | + |
| 39 | +<Global /> |
| 40 | + |
| 41 | +## Examples |
| 42 | + |
| 43 | +Applies an autofill column on a selected column to a document library based on the list id. |
| 44 | + |
| 45 | +```sh |
| 46 | +m365 spp autofillcolumn apply --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" |
| 47 | +``` |
| 48 | + |
| 49 | +Applies an autofill column on a selected column to a document library based on the list title. |
| 50 | + |
| 51 | +```sh |
| 52 | +m365 spp autofillcolumn apply --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listTitle "Documents" --columnId "1045e69d-21fb-4214-a25a-9bdfa7cb63a2" --prompt "Write a 2-line summary of the document" |
| 53 | +``` |
| 54 | + |
| 55 | +Applies an autofill column on a selected column to a document library based on the list url. |
| 56 | + |
| 57 | +```sh |
| 58 | +m365 spp autofillcolumn apply --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" |
| 59 | +``` |
| 60 | + |
| 61 | +Applies an autofill column on a selected column to a document library based on the list id and column title. |
| 62 | + |
| 63 | +```sh |
| 64 | +m365 spp autofillcolumn apply --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --prompt "Write a 2-line summary of the document" |
| 65 | +``` |
| 66 | + |
| 67 | +## Response |
| 68 | + |
| 69 | +The command won't return a response on success. |
0 commit comments