Skip to content

Commit 50c5529

Browse files
committed
Adds spp autofillcolumn apply command. Closes #6203
1 parent f17d225 commit 50c5529

File tree

5 files changed

+616
-0
lines changed

5 files changed

+616
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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+
40+
<Global />
41+
42+
## Examples
43+
44+
Applies an autofill column on a selected column to a document library based on the list id.
45+
46+
```sh
47+
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"
48+
```
49+
50+
Applies an autofill column on a selected column to a document library based on the list title.
51+
52+
```sh
53+
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"
54+
```
55+
56+
Applies an autofill column on a selected column to a document library based on the list url.
57+
58+
```sh
59+
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"
60+
```
61+
62+
Applies an autofill column on a selected column to a document library based on the list id and column title.
63+
64+
```sh
65+
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"
66+
```
67+
68+
## Response
69+
70+
The command won't return a response on success.

docs/src/config/sidebars.ts

Lines changed: 9 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)