@pnp/cli-microsoft365 6.4.0-beta.e3b0f5c → 6.4.0-beta.f8f3553
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +3 -0
- package/README.md +12 -1
- package/dist/m365/aad/commands/user/user-get.js +3 -0
- package/dist/m365/aad/commands/user/user-set.js +3 -0
- package/dist/m365/aad/commands/user/user-signin-list.js +3 -0
- package/dist/m365/planner/commands/roster/roster-member-add.js +3 -0
- package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +138 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +48 -14
- package/dist/m365/purview/commands.js +1 -0
- package/dist/m365/spfx/commands/spfx-doctor.js +43 -29
- package/dist/m365/spo/commands/commandset/commandset-add.js +138 -0
- package/dist/m365/spo/commands/commandset/commandset-get.js +128 -0
- package/dist/m365/spo/commands/commandset/commandset-list.js +77 -0
- package/dist/m365/spo/commands/commandset/commandset-remove.js +146 -0
- package/dist/m365/spo/commands/commandset/commandset-set.js +182 -0
- package/dist/m365/spo/commands/file/file-move.js +1 -1
- package/dist/m365/spo/commands/group/group-member-add.js +54 -95
- package/dist/m365/spo/commands/list/list-add.js +11 -8
- package/dist/m365/spo/commands/list/list-set.js +3 -3
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +5 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +5 -1
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +118 -0
- package/dist/m365/spo/commands/user/user-ensure.js +105 -0
- package/dist/m365/spo/commands.js +7 -0
- package/dist/utils/aadUser.js +37 -0
- package/dist/utils/md.js +7 -0
- package/dist/utils/spo.js +32 -0
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +4 -4
- package/docs/docs/cmd/onenote/page/page-list.md +1 -1
- package/docs/docs/cmd/outlook/mail/mail-send.md +7 -3
- package/docs/docs/cmd/outlook/message/message-get.md +143 -0
- package/docs/docs/cmd/outlook/message/message-list.md +119 -0
- package/docs/docs/cmd/outlook/message/message-move.md +4 -0
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.md +45 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.md +43 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.md +44 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.md +48 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.md +41 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.md +49 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.md +37 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.md +36 -0
- package/docs/docs/cmd/outlook/room/room-list.md +81 -0
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +58 -0
- package/docs/docs/cmd/planner/plan/plan-add.md +3 -3
- package/docs/docs/cmd/planner/plan/plan-set.md +73 -7
- package/docs/docs/cmd/planner/roster/roster-add.md +16 -1
- package/docs/docs/cmd/planner/task/task-add.md +230 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-add.md +55 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +55 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-get.md +131 -0
- package/docs/docs/cmd/planner/task/task-list.md +92 -0
- package/docs/docs/cmd/planner/task/task-reference-add.md +46 -0
- package/docs/docs/cmd/planner/task/task-reference-list.md +46 -0
- package/docs/docs/cmd/planner/task/task-reference-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-set.md +230 -0
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +55 -0
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +55 -0
- package/docs/docs/cmd/pp/card/card-get.md +2 -2
- package/docs/docs/cmd/pp/card/card-list.md +2 -2
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.md +149 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.md +7 -7
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +12 -0
- package/docs/docs/cmd/skype/report/report-activitycounts.md +38 -0
- package/docs/docs/cmd/skype/report/report-activityusercounts.md +38 -0
- package/docs/docs/cmd/skype/report/report-activityuserdetail.md +67 -0
- package/docs/docs/cmd/spfx/project/project-doctor.md +3 -3
- package/docs/docs/cmd/spfx/project/project-externalize.md +3 -3
- package/docs/docs/cmd/spfx/project/project-permissions-grant.md +21 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +3 -3
- package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-get.md +6 -6
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-set.md +3 -3
- package/docs/docs/cmd/spo/commandset/commandset-add.md +159 -0
- package/docs/docs/cmd/spo/commandset/commandset-get.md +149 -0
- package/docs/docs/cmd/spo/commandset/commandset-list.md +109 -0
- package/docs/docs/cmd/spo/commandset/commandset-remove.md +55 -0
- package/docs/docs/cmd/spo/commandset/commandset-set.md +71 -0
- package/docs/docs/cmd/spo/externaluser/externaluser-list.md +2 -0
- package/docs/docs/cmd/spo/group/group-member-add.md +22 -0
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +2 -0
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +2 -0
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +2 -0
- package/docs/docs/cmd/spo/homesite/homesite-set.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +3 -3
- package/docs/docs/cmd/spo/list/list-add.md +2 -2
- package/docs/docs/cmd/spo/list/list-set.md +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +2 -2
- package/docs/docs/cmd/spo/navigation/navigation-node-set.md +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +2 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +2 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +3 -3
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +3 -3
- package/docs/docs/cmd/spo/site/site-commsite-enable.md +2 -0
- package/docs/docs/cmd/spo/site/site-list.md +3 -3
- package/docs/docs/cmd/spo/site/site-remove.md +3 -3
- package/docs/docs/cmd/spo/site/site-rename.md +3 -3
- package/docs/docs/cmd/spo/site/site-set.md +5 -5
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +3 -3
- package/docs/docs/cmd/spo/storageentity/storageentity-set.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.md +142 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.md +2 -0
- package/docs/docs/cmd/spo/term/term-add.md +3 -3
- package/docs/docs/cmd/spo/term/term-get.md +3 -3
- package/docs/docs/cmd/spo/term/term-group-add.md +2 -0
- package/docs/docs/cmd/spo/term/term-group-get.md +2 -0
- package/docs/docs/cmd/spo/term/term-group-list.md +2 -0
- package/docs/docs/cmd/spo/term/term-list.md +3 -1
- package/docs/docs/cmd/spo/term/term-set-add.md +3 -3
- package/docs/docs/cmd/spo/term/term-set-get.md +2 -0
- package/docs/docs/cmd/spo/term/term-set-list.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-apply.md +3 -3
- package/docs/docs/cmd/spo/theme/theme-get.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-list.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-remove.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-set.md +3 -3
- package/docs/docs/cmd/spo/user/user-ensure.md +109 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +1 -1
- package/docs/docs/cmd/teams/message/message-get.md +39 -4
- package/docs/docs/cmd/teams/message/message-list.md +41 -6
- package/docs/docs/cmd/teams/message/message-reply-list.md +39 -4
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +20 -2
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +8 -8
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.md +12 -5
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.md +14 -7
- package/docs/docs/cmd/teams/report/report-directroutingcalls.md +13 -6
- package/docs/docs/cmd/teams/report/report-pstncalls.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivitycounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.md +13 -6
- package/docs/docs/cmd/teams/tab/tab-add.md +16 -0
- package/docs/docs/cmd/teams/tab/tab-get.md +17 -0
- package/docs/docs/cmd/teams/tab/tab-list.md +19 -0
- package/docs/docs/cmd/teams/team/team-add.md +77 -8
- package/docs/docs/cmd/teams/team/team-app-list.md +18 -2
- package/docs/docs/cmd/teams/team/team-archive.md +2 -2
- package/docs/docs/cmd/teams/team/team-clone.md +8 -8
- package/docs/docs/cmd/teams/team/team-get.md +34 -4
- package/docs/docs/cmd/teams/team/team-list.md +34 -3
- package/docs/docs/cmd/teams/team/team-remove.md +3 -3
- package/docs/docs/cmd/teams/team/team-set.md +8 -8
- package/docs/docs/cmd/teams/team/team-unarchive.md +3 -2
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-list.md +18 -2
- package/docs/docs/cmd/teams/user/user-app-remove.md +4 -4
- package/docs/docs/cmd/teams/user/user-list.md +21 -4
- package/npm-shrinkwrap.json +277 -192
- package/package.json +13 -13
package/dist/utils/md.js
CHANGED
|
@@ -51,6 +51,12 @@ function convertContentTabs(md) {
|
|
|
51
51
|
return ` ${title}${os_1.EOL}${os_1.EOL}${content.replace(/^ /gms, '')}`;
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
+
function convertMdOutput(md) {
|
|
55
|
+
const regex = new RegExp('(?<=^ ```md)(.*)(?= ```)', 'gms');
|
|
56
|
+
return md.replace(regex, (match, content) => {
|
|
57
|
+
return content.replace(/^ /gms, '');
|
|
58
|
+
});
|
|
59
|
+
}
|
|
54
60
|
function convertCodeFences(md) {
|
|
55
61
|
const regex = new RegExp('^```.*?(?:\r\n|\n)(.*?)```(?:\r\n|\n)', 'gms');
|
|
56
62
|
return md.replace(regex, (match, code) => {
|
|
@@ -79,6 +85,7 @@ const convertFunctions = [
|
|
|
79
85
|
convertAdmonitions,
|
|
80
86
|
convertDd,
|
|
81
87
|
convertHyperlinks,
|
|
88
|
+
convertMdOutput,
|
|
82
89
|
convertContentTabs,
|
|
83
90
|
convertCodeFences,
|
|
84
91
|
removeInlineMarkup,
|
package/dist/utils/spo.js
CHANGED
|
@@ -536,6 +536,38 @@ exports.spo = {
|
|
|
536
536
|
const customActionOnSite = yield getById(webUrl, id, "Site");
|
|
537
537
|
return customActionOnSite;
|
|
538
538
|
});
|
|
539
|
+
},
|
|
540
|
+
getTenantAppCatalogUrl(logger, debug) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
const spoUrl = yield exports.spo.getSpoUrl(logger, debug);
|
|
543
|
+
const requestOptions = {
|
|
544
|
+
url: `${spoUrl}/_api/SP_TenantSettings_Current`,
|
|
545
|
+
headers: {
|
|
546
|
+
accept: 'application/json;odata=nometadata'
|
|
547
|
+
},
|
|
548
|
+
responseType: 'json'
|
|
549
|
+
};
|
|
550
|
+
const result = yield request_1.default.get(requestOptions);
|
|
551
|
+
return result.CorporateCatalogUrl;
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
* Retrieves the Azure AD ID from a SP user.
|
|
556
|
+
* @param webUrl Web url
|
|
557
|
+
* @param id The Id of the user
|
|
558
|
+
*/
|
|
559
|
+
getUserAzureIdBySpoId(webUrl, id) {
|
|
560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
const requestOptions = {
|
|
562
|
+
url: `${webUrl}/_api/web/siteusers/GetById('${formatting_1.formatting.encodeQueryParameter(id)}')?$select=AadObjectId`,
|
|
563
|
+
headers: {
|
|
564
|
+
accept: 'application/json;odata=nometadata'
|
|
565
|
+
},
|
|
566
|
+
responseType: 'json'
|
|
567
|
+
};
|
|
568
|
+
const res = yield request_1.default.get(requestOptions);
|
|
569
|
+
return res.AadObjectId.NameId;
|
|
570
|
+
});
|
|
539
571
|
}
|
|
540
572
|
};
|
|
541
573
|
//# sourceMappingURL=spo.js.map
|
|
@@ -12,16 +12,16 @@ m365 cli completion clink update [options]
|
|
|
12
12
|
|
|
13
13
|
--8<-- "docs/cmd/_global.md"
|
|
14
14
|
|
|
15
|
-
!!! important
|
|
16
|
-
Before running this command, change the working directory to where your shell stores completion plugins. For cmder, it's `%CMDER_ROOT%\vendor\clink-completions`, where `%CMDER_ROOT%` is the folder where you installed cmder. After running this command, restart your terminal to load the completion.
|
|
17
|
-
|
|
18
15
|
## Remarks
|
|
19
16
|
|
|
20
17
|
This commands updates the list of commands and their options used by command completion in Clink (cmder). You should run this command each time after upgrading the CLI for Microsoft 365.
|
|
21
18
|
|
|
19
|
+
!!! important
|
|
20
|
+
Before running this command, change the working directory to where your shell stores completion plugins. For cmder, it's `%CMDER_ROOT%\vendor\clink-completions`, where `%CMDER_ROOT%` is the folder where you installed cmder. After running this command, restart your terminal to load the completion.
|
|
21
|
+
|
|
22
22
|
## Examples
|
|
23
23
|
|
|
24
|
-
Write the list of commands for Clink (cmder) command completion to a file named `m365.lua` in the current directory
|
|
24
|
+
Write the list of commands for Clink (cmder) command completion to a file named `m365.lua` in the current directory.
|
|
25
25
|
|
|
26
26
|
```powershell
|
|
27
27
|
m365 cli completion clink update > m365.lua
|
|
@@ -118,7 +118,7 @@ m365 onenote page list --webUrl https://contoso.sharepoint.com/sites/testsite
|
|
|
118
118
|
=== "Markdown"
|
|
119
119
|
|
|
120
120
|
```md
|
|
121
|
-
# onenote page list --userName "
|
|
121
|
+
# onenote page list --userName "john.doe@contoso.onmicrosoft.com"
|
|
122
122
|
|
|
123
123
|
Date: 07/01/2023
|
|
124
124
|
|
|
@@ -11,7 +11,7 @@ m365 outlook mail send [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-s, --subject <subject>`
|
|
14
|
-
: Email subject
|
|
14
|
+
: Email subject.
|
|
15
15
|
|
|
16
16
|
`-t, --to <to>`
|
|
17
17
|
: Comma-separated list of emails to send the message to.
|
|
@@ -32,10 +32,10 @@ m365 outlook mail send [options]
|
|
|
32
32
|
: String containing the body of the email to send.
|
|
33
33
|
|
|
34
34
|
`--bodyContentType [bodyContentType]`
|
|
35
|
-
: Type of the body content. Available options: `Text
|
|
35
|
+
: Type of the body content. Available options: `Text`, `HTML`. Default is `Text`.
|
|
36
36
|
|
|
37
37
|
`--importance [importance]`
|
|
38
|
-
: The importance of the message. Available options: `low`, `normal
|
|
38
|
+
: The importance of the message. Available options: `low`, `normal`, or `high`. Default is `normal`.
|
|
39
39
|
|
|
40
40
|
`--attachment [attachment]`
|
|
41
41
|
: Path to the file that will be added as attachment to the email. This option can be used multiple times to attach multiple attachments.
|
|
@@ -123,3 +123,7 @@ Send an email with multiple attachments
|
|
|
123
123
|
```sh
|
|
124
124
|
m365 outlook mail send --to chris@contoso.com --subject "Monthly reports" --bodyContents "Here are the reports of this month." --attachment "C:/Reports/File1.jpg" --attachment "C:/Reports/File2.docx" --attachment "C:/Reports/File3.xlsx"
|
|
125
125
|
```
|
|
126
|
+
|
|
127
|
+
## Response
|
|
128
|
+
|
|
129
|
+
The command won't return a response on success.
|
|
@@ -46,3 +46,146 @@ Get a specific message from a specific user retrieved by user principal name usi
|
|
|
46
46
|
```sh
|
|
47
47
|
m365 outlook message get --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALvuv07AAA= --userPrincipalName user@tenant.com
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
=== "JSON"
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"id": "AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=",
|
|
57
|
+
"createdDateTime": "2023-01-26T19:22:44Z",
|
|
58
|
+
"lastModifiedDateTime": "2023-01-26T19:22:46Z",
|
|
59
|
+
"changeKey": "CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPehsHb",
|
|
60
|
+
"categories": [],
|
|
61
|
+
"receivedDateTime": "2023-01-26T19:22:45Z",
|
|
62
|
+
"sentDateTime": "2023-01-26T19:22:42Z",
|
|
63
|
+
"hasAttachments": true,
|
|
64
|
+
"internetMessageId": "<HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>",
|
|
65
|
+
"subject": "Lorem ipsum",
|
|
66
|
+
"bodyPreview": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.",
|
|
67
|
+
"importance": "normal",
|
|
68
|
+
"parentFolderId": "AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=",
|
|
69
|
+
"conversationId": "AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73_QiuVw=",
|
|
70
|
+
"conversationIndex": "AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==",
|
|
71
|
+
"isDeliveryReceiptRequested": false,
|
|
72
|
+
"isReadReceiptRequested": false,
|
|
73
|
+
"isRead": false,
|
|
74
|
+
"isDraft": false,
|
|
75
|
+
"webLink": "https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem",
|
|
76
|
+
"inferenceClassification": "focused",
|
|
77
|
+
"body": {
|
|
78
|
+
"contentType": "html",
|
|
79
|
+
"content": "<html><head>\r\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\\\n<!--\r\\\np\r\\\n\t{margin-top:0;\r\\\n\tmargin-bottom:0}\r\\\n-->\r\\\n</style></head><body dir=\"ltr\"><div class=\"elementToProof ContentPasted0\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>"
|
|
80
|
+
},
|
|
81
|
+
"sender": {
|
|
82
|
+
"emailAddress": {
|
|
83
|
+
"name": "John Doe",
|
|
84
|
+
"address": "john.doe@contoso.com"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"from": {
|
|
88
|
+
"emailAddress": {
|
|
89
|
+
"name": "John Doe",
|
|
90
|
+
"address": "john.doe@contoso.com"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"toRecipients": [
|
|
94
|
+
{
|
|
95
|
+
"emailAddress": {
|
|
96
|
+
"name": "Megan Bowen",
|
|
97
|
+
"address": "megan.bowen@contoso.com"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"ccRecipients": [],
|
|
102
|
+
"bccRecipients": [],
|
|
103
|
+
"replyTo": [],
|
|
104
|
+
"flag": {
|
|
105
|
+
"flagStatus": "notFlagged"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
=== "Text"
|
|
111
|
+
|
|
112
|
+
```txt
|
|
113
|
+
bccRecipients : []
|
|
114
|
+
body : {"contentType":"html","content":"<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style></head><body dir=\"ltr\"><div class=\"elementToProof ContentPasted0\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>"}
|
|
115
|
+
bodyPreview : Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.
|
|
116
|
+
categories : []
|
|
117
|
+
ccRecipients : []
|
|
118
|
+
changeKey : CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPehsHb
|
|
119
|
+
conversationId : AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73_QiuVw=
|
|
120
|
+
conversationIndex : AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==
|
|
121
|
+
createdDateTime : 2023-01-26T19:22:44Z
|
|
122
|
+
flag : {"flagStatus":"notFlagged"}
|
|
123
|
+
from : {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
124
|
+
hasAttachments : true
|
|
125
|
+
id : AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=
|
|
126
|
+
importance : normal
|
|
127
|
+
inferenceClassification : focused
|
|
128
|
+
internetMessageId : <HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>
|
|
129
|
+
isDeliveryReceiptRequested: false
|
|
130
|
+
isDraft : false
|
|
131
|
+
isRead : false
|
|
132
|
+
isReadReceiptRequested : false
|
|
133
|
+
lastModifiedDateTime : 2023-01-26T19:22:46Z
|
|
134
|
+
parentFolderId : AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=
|
|
135
|
+
receivedDateTime : 2023-01-26T19:22:45Z
|
|
136
|
+
replyTo : []
|
|
137
|
+
sender : {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
138
|
+
sentDateTime : 2023-01-26T19:22:42Z
|
|
139
|
+
subject : Lorem ipsum
|
|
140
|
+
toRecipients : [{"emailAddress":{"name":"Megan Bowen","address":"megan.bowen@contoso.com"}}]
|
|
141
|
+
webLink : https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
=== "CSV"
|
|
145
|
+
|
|
146
|
+
```csv
|
|
147
|
+
id,createdDateTime,lastModifiedDateTime,changeKey,categories,receivedDateTime,sentDateTime,hasAttachments,internetMessageId,subject,bodyPreview,importance,parentFolderId,conversationId,conversationIndex,isDeliveryReceiptRequested,isReadReceiptRequested,isRead,isDraft,webLink,inferenceClassification,body,sender,from,toRecipients,ccRecipients,bccRecipients,replyTo,flag
|
|
148
|
+
AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=,2023-01-26T19:22:44Z,2023-01-26T19:22:46Z,CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPehsHb,[],2023-01-26T19:22:45Z,2023-01-26T19:22:42Z,1,<HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>,Lorem ipsum,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.",normal,AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=,AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73_QiuVw=,AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==,,,,,https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem,focused,"{""contentType"":""html"",""content"":""<html><head>\r\n<meta http-equiv=\""Content-Type\"" content=\""text/html; charset=utf-8\""><style type=\""text/css\"" style=\""display:none\"">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style></head><body dir=\""ltr\""><div class=\""elementToProof ContentPasted0\"" style=\""font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\"">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>""}","{""emailAddress"":{""name"":""John Doe"",""address"":""john.doe@contoso.com""}}","{""emailAddress"":{""name"":""John Doe"",""address"":""john.doe@contoso.com""}}","[{""emailAddress"":{""name"":""Megan Bowen"",""address"":""megan.bowen@contoso.com""}}]",[],[],[],"{""flagStatus"":""notFlagged""}"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
=== "Markdown"
|
|
152
|
+
|
|
153
|
+
```md
|
|
154
|
+
# outlook message get --id "AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA="
|
|
155
|
+
|
|
156
|
+
Date: 4/2/2023
|
|
157
|
+
|
|
158
|
+
## AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=
|
|
159
|
+
|
|
160
|
+
Property | Value
|
|
161
|
+
---------|-------
|
|
162
|
+
id | AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=
|
|
163
|
+
createdDateTime | 2023-01-26T19:22:44Z
|
|
164
|
+
lastModifiedDateTime | 2023-01-26T19:22:46Z
|
|
165
|
+
changeKey | CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPk7Plc
|
|
166
|
+
categories | []
|
|
167
|
+
receivedDateTime | 2023-01-26T19:22:45Z
|
|
168
|
+
sentDateTime | 2023-01-26T19:22:42Z
|
|
169
|
+
hasAttachments | true
|
|
170
|
+
internetMessageId | <HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>
|
|
171
|
+
subject | Lorem ipsum
|
|
172
|
+
bodyPreview | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.
|
|
173
|
+
importance | normal
|
|
174
|
+
parentFolderId | AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP\_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=
|
|
175
|
+
conversationId | AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73\_QiuVw=
|
|
176
|
+
conversationIndex | AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==
|
|
177
|
+
isDeliveryReceiptRequested | false
|
|
178
|
+
isReadReceiptRequested | false
|
|
179
|
+
isRead | true
|
|
180
|
+
isDraft | false
|
|
181
|
+
webLink | https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem
|
|
182
|
+
inferenceClassification | focused
|
|
183
|
+
body | {"contentType":"html","content":"<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style></head><body dir=\"ltr\"><div class=\"elementToProof ContentPasted0\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>"}
|
|
184
|
+
sender | {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
185
|
+
from | {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
186
|
+
toRecipients | [{"emailAddress":{"name":"Megan Bowen","address":"megan.bowen@contoso.com"}}]
|
|
187
|
+
ccRecipients | []
|
|
188
|
+
bccRecipients | []
|
|
189
|
+
replyTo | []
|
|
190
|
+
flag | {"flagStatus":"notFlagged"}
|
|
191
|
+
```
|
|
@@ -38,6 +38,125 @@ List all messages in the folder with the specified well-known name
|
|
|
38
38
|
m365 outlook message list --folderName inbox
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"id": "AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=",
|
|
49
|
+
"createdDateTime": "2023-01-26T19:22:44Z",
|
|
50
|
+
"lastModifiedDateTime": "2023-01-26T19:22:46Z",
|
|
51
|
+
"changeKey": "CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPehsHb",
|
|
52
|
+
"categories": [],
|
|
53
|
+
"receivedDateTime": "2023-01-26T19:22:45Z",
|
|
54
|
+
"sentDateTime": "2023-01-26T19:22:42Z",
|
|
55
|
+
"hasAttachments": true,
|
|
56
|
+
"internetMessageId": "<HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>",
|
|
57
|
+
"subject": "Lorem ipsum",
|
|
58
|
+
"bodyPreview": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.",
|
|
59
|
+
"importance": "normal",
|
|
60
|
+
"parentFolderId": "AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=",
|
|
61
|
+
"conversationId": "AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73_QiuVw=",
|
|
62
|
+
"conversationIndex": "AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==",
|
|
63
|
+
"isDeliveryReceiptRequested": false,
|
|
64
|
+
"isReadReceiptRequested": false,
|
|
65
|
+
"isRead": false,
|
|
66
|
+
"isDraft": false,
|
|
67
|
+
"webLink": "https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem",
|
|
68
|
+
"inferenceClassification": "focused",
|
|
69
|
+
"body": {
|
|
70
|
+
"contentType": "html",
|
|
71
|
+
"content": "<html><head>\r\\\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\\\n<!--\r\\\np\r\\\n\t{margin-top:0;\r\\\n\tmargin-bottom:0}\r\\\n-->\r\\\n</style></head><body dir=\"ltr\"><div class=\"elementToProof ContentPasted0\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>"
|
|
72
|
+
},
|
|
73
|
+
"sender": {
|
|
74
|
+
"emailAddress": {
|
|
75
|
+
"name": "John Doe",
|
|
76
|
+
"address": "john.doe@contoso.com"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"from": {
|
|
80
|
+
"emailAddress": {
|
|
81
|
+
"name": "John Doe",
|
|
82
|
+
"address": "john.doe@contoso.com"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"toRecipients": [
|
|
86
|
+
{
|
|
87
|
+
"emailAddress": {
|
|
88
|
+
"name": "Megan Bowen",
|
|
89
|
+
"address": "megan.bowen@contoso.com"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"ccRecipients": [],
|
|
94
|
+
"bccRecipients": [],
|
|
95
|
+
"replyTo": [],
|
|
96
|
+
"flag": {
|
|
97
|
+
"flagStatus": "notFlagged"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
=== "Text"
|
|
104
|
+
|
|
105
|
+
```txt
|
|
106
|
+
subject receivedDateTime
|
|
107
|
+
----------- --------------------
|
|
108
|
+
Lorem ipsum 2023-01-26T19:22:45Z
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
=== "CSV"
|
|
112
|
+
|
|
113
|
+
```csv
|
|
114
|
+
subject,receivedDateTime
|
|
115
|
+
Lorem ipsum,2023-01-26T19:22:45Z
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
=== "Markdown"
|
|
119
|
+
|
|
120
|
+
```md
|
|
121
|
+
# outlook message list --folderName "inbox"
|
|
122
|
+
|
|
123
|
+
Date: 4/2/2023
|
|
124
|
+
|
|
125
|
+
## AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=
|
|
126
|
+
|
|
127
|
+
Property | Value
|
|
128
|
+
---------|-------
|
|
129
|
+
id | AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP_VgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA=
|
|
130
|
+
createdDateTime | 2023-01-26T19:22:44Z
|
|
131
|
+
lastModifiedDateTime | 2023-01-26T19:22:46Z
|
|
132
|
+
changeKey | CQAAABYAAAAhebtol4HnTZCmNsr9Gnh6AAPk7Plc
|
|
133
|
+
categories | []
|
|
134
|
+
receivedDateTime | 2023-01-26T19:22:45Z
|
|
135
|
+
sentDateTime | 2023-01-26T19:22:42Z
|
|
136
|
+
hasAttachments | true
|
|
137
|
+
internetMessageId | <HE1P190MB032953D4D9C86FCEF5FFA8C4CECF9@HE1P190MB0329.EURP190.PROD.OUTLOOK.COM>
|
|
138
|
+
subject | Lorem ipsum
|
|
139
|
+
bodyPreview | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra.
|
|
140
|
+
importance | normal
|
|
141
|
+
parentFolderId | AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAuAAAAAABn1FpEFqPeR7YAnkzP\_VgXAQAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAA=
|
|
142
|
+
conversationId | AAQkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQAQAJfvGq77YHxJvRN73\_QiuVw=
|
|
143
|
+
conversationIndex | AQHZMbuNl+8arvtgfEm9E3vf5CK5XA==
|
|
144
|
+
isDeliveryReceiptRequested | false
|
|
145
|
+
isReadReceiptRequested | false
|
|
146
|
+
isRead | true
|
|
147
|
+
isDraft | false
|
|
148
|
+
webLink | https://outlook.office365.com/owa/?ItemID=AAMkAGUzZWVmZWU4LTM5ZmItNDA4My04OTIzLWY1MGUxNzdiYTQ0MQBGAAAAAABn1FpEFqPeR7YAnkzP%2BVgXBwAhebtol4HnTZCmNsr9Gnh6AAAAAAEMAAAhebtol4HnTZCmNsr9Gnh6AAPfHbtVAAA%3D&exvsurl=1&viewmodel=ReadMessageItem
|
|
149
|
+
inferenceClassification | focused
|
|
150
|
+
body | {"contentType":"html","content":"<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style></head><body dir=\"ltr\"><div class=\"elementToProof ContentPasted0\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel diam gravida, auctor mauris nec, posuere tellus. Vivamus placerat, nunc ac cursus feugiat, arcu tellus mattis nisl, id cursus nisl lectus eu lacus. Praesent malesuada ut orci vitae viverra. Suspendisse cursus turpis vel urna volutpat congue. Etiam auctor nec nulla sed suscipit. Vestibulum rhoncus quis mi ac faucibus. Curabitur eget eleifend felis. Vestibulum ut dolor non elit molestie ornare. <br></div></body></html>"}
|
|
151
|
+
sender | {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
152
|
+
from | {"emailAddress":{"name":"John Doe","address":"john.doe@contoso.com"}}
|
|
153
|
+
toRecipients | [{"emailAddress":{"name":"Megan Bowen","address":"megan.bowen@contoso.com"}}]
|
|
154
|
+
ccRecipients | []
|
|
155
|
+
bccRecipients | []
|
|
156
|
+
replyTo | []
|
|
157
|
+
flag | {"flagStatus":"notFlagged"}
|
|
158
|
+
```
|
|
159
|
+
|
|
41
160
|
## More information
|
|
42
161
|
|
|
43
162
|
- Well-known folder names: [https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0)
|
|
@@ -48,6 +48,10 @@ name
|
|
|
48
48
|
m365 outlook message move --id AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAALdyzhHAAA= --sourceFolderName inbox --targetFolderName archive
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
## Response
|
|
52
|
+
|
|
53
|
+
The command won't return a response on success.
|
|
54
|
+
|
|
51
55
|
## More information
|
|
52
56
|
|
|
53
57
|
- Well-known folder names: [https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0](https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0)
|
|
@@ -37,3 +37,43 @@ Gets the trends of email activity (like how many were sent, read, and received)
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 outlook report mailactivitycounts --period D7 --output json > "mailactivitycounts.json"
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"Report Refresh Date": "2023-01-24",
|
|
49
|
+
"Send": "",
|
|
50
|
+
"Receive": "2",
|
|
51
|
+
"Read": "",
|
|
52
|
+
"Meeting Created": "0",
|
|
53
|
+
"Meeting Interacted": "",
|
|
54
|
+
"Report Date": "2023-01-18",
|
|
55
|
+
"Report Period": "7"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
=== "Text"
|
|
61
|
+
|
|
62
|
+
```txt
|
|
63
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
64
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
=== "CSV"
|
|
68
|
+
|
|
69
|
+
```csv
|
|
70
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
71
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
=== "Markdown"
|
|
75
|
+
|
|
76
|
+
```md
|
|
77
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
78
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
79
|
+
```
|
|
@@ -37,3 +37,43 @@ Gets the trends on the number of unique users who are performing email activitie
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 outlook report mailactivityusercounts --period D7 --output json > "mailactivityusercounts.json"
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"Report Refresh Date": "2023-01-24",
|
|
49
|
+
"Send": "",
|
|
50
|
+
"Receive": "2",
|
|
51
|
+
"Read": "",
|
|
52
|
+
"Meeting Created": "0",
|
|
53
|
+
"Meeting Interacted": "",
|
|
54
|
+
"Report Date": "2023-01-18",
|
|
55
|
+
"Report Period": "7"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
=== "Text"
|
|
61
|
+
|
|
62
|
+
```txt
|
|
63
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
64
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
=== "CSV"
|
|
68
|
+
|
|
69
|
+
```csv
|
|
70
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
71
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
=== "Markdown"
|
|
75
|
+
|
|
76
|
+
```md
|
|
77
|
+
Report Refresh Date,Send,Receive,Read,Meeting Created,Meeting Interacted,Report Date,Report Period
|
|
78
|
+
2023-01-24,,2,,0,,2023-01-18,7
|
|
79
|
+
```
|
|
@@ -46,3 +46,48 @@ Gets details about email activity users have performed for the last week and exp
|
|
|
46
46
|
```sh
|
|
47
47
|
m365 outlook report mailactivityuserdetail --period D7 --output json > "mailactivityuserdetail.json"
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
=== "JSON"
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
[
|
|
56
|
+
{
|
|
57
|
+
"Report Refresh Date": "2023-01-24",
|
|
58
|
+
"User Principal Name": "5535B4D580981B19AD1942C38063507F",
|
|
59
|
+
"Display Name": "F8C53518381F605C8FBA65C52CB43A1D",
|
|
60
|
+
"Is Deleted": "False",
|
|
61
|
+
"Deleted Date": "",
|
|
62
|
+
"Last Activity Date": "2022-11-29",
|
|
63
|
+
"Send Count": "0",
|
|
64
|
+
"Receive Count": "0",
|
|
65
|
+
"Read Count": "0",
|
|
66
|
+
"Meeting Created Count": "0",
|
|
67
|
+
"Meeting Interacted Count": "0",
|
|
68
|
+
"Assigned Products": "OFFICE 365 E5+MICROSOFT POWER AUTOMATE FREE+MICROSOFT POWER APPS PLAN 2 TRIAL+POWER BI (FREE)",
|
|
69
|
+
"Report Period": "7"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
=== "Text"
|
|
75
|
+
|
|
76
|
+
```txt
|
|
77
|
+
Report Refresh Date,User Principal Name,Display Name,Is Deleted,Deleted Date,Last Activity Date,Send Count,Receive Count,Read Count,Meeting Created Count,Meeting Interacted Count,Assigned Products,Report Period
|
|
78
|
+
2023-01-24,5535B4D580981B19AD1942C38063507F,F8C53518381F605C8FBA65C52CB43A1D,False,,2022-11-29,0,0,0,0,0,OFFICE 365 E5+MICROSOFT POWER AUTOMATE FREE+MICROSOFT POWER APPS PLAN 2 TRIAL+POWER BI (FREE),7
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
=== "CSV"
|
|
82
|
+
|
|
83
|
+
```csv
|
|
84
|
+
Report Refresh Date,User Principal Name,Display Name,Is Deleted,Deleted Date,Last Activity Date,Send Count,Receive Count,Read Count,Meeting Created Count,Meeting Interacted Count,Assigned Products,Report Period
|
|
85
|
+
2023-01-24,5535B4D580981B19AD1942C38063507F,F8C53518381F605C8FBA65C52CB43A1D,False,,2022-11-29,0,0,0,0,0,OFFICE 365 E5+MICROSOFT POWER AUTOMATE FREE+MICROSOFT POWER APPS PLAN 2 TRIAL+POWER BI (FREE),7
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
=== "Markdown"
|
|
89
|
+
|
|
90
|
+
```md
|
|
91
|
+
Report Refresh Date,User Principal Name,Display Name,Is Deleted,Deleted Date,Last Activity Date,Send Count,Receive Count,Read Count,Meeting Created Count,Meeting Interacted Count,Assigned Products,Report Period
|
|
92
|
+
2023-01-24,5535B4D580981B19AD1942C38063507F,F8C53518381F605C8FBA65C52CB43A1D,False,,2022-11-29,0,0,0,0,0,OFFICE 365 E5+MICROSOFT POWER AUTOMATE FREE+MICROSOFT POWER APPS PLAN 2 TRIAL+POWER BI (FREE),7
|
|
93
|
+
```
|
|
@@ -37,3 +37,46 @@ Gets the count of unique users per email app for the last week and exports the r
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 outlook report mailappusageappsusercounts --period D7 --output json > "mailappusageappsusercounts.json"
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"Report Refresh Date": "2023-01-25",
|
|
49
|
+
"Mail For Mac": "",
|
|
50
|
+
"Outlook For Mac": "6",
|
|
51
|
+
"Outlook For Windows": "108",
|
|
52
|
+
"Outlook For Mobile": "61",
|
|
53
|
+
"Other For Mobile": "",
|
|
54
|
+
"Outlook For Web": "2",
|
|
55
|
+
"POP3 App": "",
|
|
56
|
+
"IMAP4 App": "",
|
|
57
|
+
"SMTP App": "",
|
|
58
|
+
"Report Period": "7"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
=== "Text"
|
|
64
|
+
|
|
65
|
+
```txt
|
|
66
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Period
|
|
67
|
+
2023-01-25,,6,108,61,,2,,,,7
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
=== "CSV"
|
|
71
|
+
|
|
72
|
+
```csv
|
|
73
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Period
|
|
74
|
+
2023-01-25,,6,108,61,,2,,,,7
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
=== "Markdown"
|
|
78
|
+
|
|
79
|
+
```md
|
|
80
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Period
|
|
81
|
+
2023-01-25,,6,108,61,,2,,,,7
|
|
82
|
+
```
|
|
@@ -37,3 +37,47 @@ Gets the count of unique users that connected to Exchange Online using any email
|
|
|
37
37
|
```sh
|
|
38
38
|
m365 outlook report mailappusageusercounts --period D7 --output json > "mailappusageusercounts.json"
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"Report Refresh Date": "2023-01-25",
|
|
49
|
+
"Mail For Mac": "",
|
|
50
|
+
"Outlook For Mac": "2",
|
|
51
|
+
"Outlook For Windows": "99",
|
|
52
|
+
"Outlook For Mobile": "46",
|
|
53
|
+
"Other For Mobile": "",
|
|
54
|
+
"Outlook For Web": "",
|
|
55
|
+
"POP3 App": "",
|
|
56
|
+
"IMAP4 App": "",
|
|
57
|
+
"SMTP App": "",
|
|
58
|
+
"Report Date": "2023-01-19",
|
|
59
|
+
"Report Period": "7"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
=== "Text"
|
|
65
|
+
|
|
66
|
+
```txt
|
|
67
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Date,Report Period
|
|
68
|
+
2023-01-25,,2,99,46,,,,,,2023-01-19,7
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
=== "CSV"
|
|
72
|
+
|
|
73
|
+
```csv
|
|
74
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Date,Report Period
|
|
75
|
+
2023-01-25,,2,99,46,,,,,,2023-01-19,7
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
=== "Markdown"
|
|
79
|
+
|
|
80
|
+
```md
|
|
81
|
+
Report Refresh Date,Mail For Mac,Outlook For Mac,Outlook For Windows,Outlook For Mobile,Other For Mobile,Outlook For Web,POP3 App,IMAP4 App,SMTP App,Report Date,Report Period
|
|
82
|
+
2023-01-25,,2,99,46,,,,,,2023-01-19,7
|
|
83
|
+
```
|