Skip to content

Commit f07ee13

Browse files
committed
Adds spp autofillcolumn apply command. Closes pnp#6203
1 parent b184dfb commit f07ee13

File tree

5 files changed

+615
-0
lines changed

5 files changed

+615
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.

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 apply',
3972+
id: 'cmd/spp/autofillcolumn/autofillcolumn-apply'
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_APPLY: `${prefix} autofillcolumn apply`,
45
CONTENTCENTER_LIST: `${prefix} contentcenter list`,
56
MODEL_LIST: `${prefix} model list`
67
};

0 commit comments

Comments
 (0)