Skip to content

Commit 064b2f6

Browse files
committed
Adds spp autofillcolumn apply command. Closes pnp#6203
1 parent f17d225 commit 064b2f6

File tree

5 files changed

+787
-0
lines changed

5 files changed

+787
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import Global from '/docs/cmd/_global.mdx';
2+
import Tabs from '@theme/Tabs';
3+
import TabItem from '@theme/TabItem';
4+
5+
# spp autofillcolumn set
6+
7+
Applies the autofill option to the selected column
8+
9+
## Usage
10+
11+
```sh
12+
m365 spp autofillcolumn set [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+
`--isEnabled [isEnabled]`
40+
: Enables or disables the autofill column feature.
41+
```
42+
43+
<Global />
44+
45+
## Examples
46+
47+
Applies an autofill column on a selected column to a document library based on the list id.
48+
49+
```sh
50+
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"
51+
```
52+
53+
Applies an autofill column on a selected column to a document library based on the list title.
54+
55+
```sh
56+
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"
57+
```
58+
59+
Applies an autofill column on a selected column to a document library based on the list url.
60+
61+
```sh
62+
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"
63+
```
64+
65+
Applies an autofill column on a selected column to a document library based on the list id and column title.
66+
67+
```sh
68+
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"
69+
```
70+
71+
Disables the autofill column for a selected column in a document library, based on the list id and column title.
72+
73+
```sh
74+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled false
75+
```
76+
77+
Modifies the prompt for the autofill column
78+
79+
```sh
80+
m365 spp autofillcolumn set --siteUrl "https://contoso.sharepoint.com/sites/mainSite" --listId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc" --columnTitle "ColumnTitle" --isEnabled true --prompt --prompt "Write a 1-line summary of the document"
81+
```
82+
83+
## Response
84+
85+
The command won't return a response on success.

docs/src/config/sidebars.ts

+9
Original file line numberDiff line numberDiff line change
@@ -3964,6 +3964,15 @@ const sidebars: SidebarsConfig = {
39643964
},
39653965
{
39663966
'SharePoint Premium (spp)': [
3967+
{
3968+
autofillcolumn: [
3969+
{
3970+
type: 'doc',
3971+
label: 'autofillcolumn set',
3972+
id: 'cmd/spp/autofillcolumn/autofillcolumn-set'
3973+
}
3974+
]
3975+
},
39673976
{
39683977
contentcenter: [
39693978
{

src/m365/spp/commands.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const prefix: string = 'spp';
22

33
export default {
4+
AUTOFILLCOLUMN_SET: `${prefix} autofillcolumn set`,
45
CONTENTCENTER_LIST: `${prefix} contentcenter list`,
56
MODEL_LIST: `${prefix} model list`
67
};

0 commit comments

Comments
 (0)