Skip to content

Commit 7b79d4c

Browse files
authored
Merge pull request #1066 from OfficeDev/main
[admin] merge to live
2 parents 401cb7c + 2f0d3e3 commit 7b79d4c

2 files changed

Lines changed: 89 additions & 1 deletion

File tree

docs/actionable-messages/invoke-add-in.md

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,90 @@ The following example shows the prompt users see if the add-in is not installed.
3131

3232
Actionable messages invoke add-ins by specifying an [Action.InvokeAddInCommand action](adaptive-card.md#actioninvokeaddincommand) in the message. This action specifies the add-in to invoke, along with the identifier of the add-in button that opens the appropriate task pane.
3333

34-
The required information is found in the [add-in's manifest](/office/dev/add-ins/outlook/manifests). First, you'll need the add-in's identifier, which is specified in the [Id element](/office/dev/add-ins/reference/manifest/id).
34+
The required information is found in the [add-in's manifest](/office/dev/add-ins/develop/add-in-manifests). Open the tab for the type of manifest that the add-in uses.
35+
36+
# [Unified manifest for Microsoft 365](#tab/jsonmanifest)
37+
38+
First, you'll need the add-in's identifier, which is specified in the [`"id"`](/microsoft-365/extensibility/schema/root#id) property.
39+
40+
```json
41+
{
42+
"$schema": "https://developer.microsoft.com/json-schemas/teams/v1.24/MicrosoftTeams.schema.json",
43+
"id": "527104a1-f1a5-475a-9199-7a968161c870",
44+
"version": "1.0.0",
45+
"manifestVersion": "1.24",
46+
47+
-- other properties omitted --
48+
}
49+
```
50+
51+
For this add-in, the add-in identifier is `527104a1-f1a5-475a-9199-7a968161c870`.
52+
53+
Next, you'll need the [`"control.id"`](/microsoft-365/extensibility/schema/extension-common-custom-group-controls-item#id) value of the control object that defines the add-in button that opens the appropriate task pane. Keep in mind that the control object MUST:
54+
55+
- Be defined inside a ribbon object that includes `mailRead` in its [`"ribbons.contexts"`](/microsoft-365/extensibility/schema/extension-ribbons-array#contexts) array.
56+
- Have its `"type"` property set to `button`.
57+
- Contain an `"actionId"` set to the same value as a the [`"actions.id"`](/microsoft-365/extensibility/schema/extension-runtimes-actions-item#id) of an action object defined in the [`"extensions.runtimes"`](/microsoft-365/extensibility/schema/extension-runtimes-array) array.
58+
59+
The following shows the JSON for an extensions object that includes a control that opens a task pane.
60+
61+
```json
62+
{
63+
-- other properties omitted --
64+
65+
"extensions": [
66+
{
67+
"runtimes": [
68+
{
69+
-- other properties omitted --
70+
71+
"actions": [
72+
{
73+
-- other properties omitted --
74+
75+
"id": "ShowTaskpane"
76+
}
77+
]
78+
}
79+
],
80+
"ribbons": [
81+
{
82+
"contexts": ["mailRead"],
83+
"tabs" [
84+
{
85+
"groups": [
86+
{
87+
-- other properties omitted --
88+
89+
"controls" [
90+
{
91+
"id": "msgReadOpenPaneButton",
92+
"type": "button",
93+
"label": "Show Task Pane",
94+
"icons": [ -- icons markup omitted -- ],
95+
"supertip": {
96+
"title": "Show Contoso Task Pane",
97+
"description": "Opens the Contoso task pane."
98+
},
99+
"actionId": "ShowTaskPane"
100+
}
101+
]
102+
}
103+
]
104+
}
105+
]
106+
}
107+
]
108+
}
109+
]
110+
}
111+
```
112+
113+
For this add-in button, the ID is `msgReadOpenPaneButton`.
114+
115+
# [Add-in only manifest](#tab/xmlmanifest)
116+
117+
First, you'll need the add-in's identifier, which is specified in the [Id element](/office/dev/add-ins/reference/manifest/id).
35118

36119
```xml
37120
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
@@ -82,6 +165,8 @@ Next, you'll need the `id` attribute of the [Control element](/office/dev/add-in
82165

83166
For this add-in button, the ID is `showInitContext`.
84167

168+
---
169+
85170
With these two pieces of information, we can create a basic `Action.InvokeAddInCommand` action as follows:
86171

87172
```json

docs/actionable-messages/security-requirements.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ Sample code generating signed card:
110110

111111
## Verifying that requests come from Microsoft
112112

113+
> [!IMPORTANT]
114+
> Actionable Messages (AM) are moving from EAT (External Access Token) to Microsoft Entra ID token authentication. Partners using EAT tokens must update their integration to support AAD tokens for requests from the AM service. For more information, see [Enabling AAD token of Actionable Messages](enable-entra-token-for-actionable-messages.md).
115+
113116
All action requests from Microsoft have a bearer token in the HTTP `Authorization` header. This token is a [JSON Web Token](https://jwt.io/) (JWT) token signed by Microsoft, and it includes important claims that we strongly recommend should be verified by the service handling the associated request.
114117

115118
| Claim name | Value |

0 commit comments

Comments
 (0)