extensionAutoRunEventsArray object
- Artigo
-
-
The extensions.autoRunEvents
property defines event-based activation extension points.
Properties that reference this object type:
Syntax
{
"requirements": {
"capabilities": [
{
capabilities object
}
],
"scopes": [
"mail | workbook | document | presentation"
],
"formFactors": [
"desktop | mobile"
]
},
"events": [
{
"type": "{string}",
"actionId": "{string}",
"options": {
options object
}
}
]
}
{
"type": "object",
"properties": {
"requirements": {
"$ref": "#/definitions/requirementsExtensionElement"
},
"events": {
"type": "array",
"maxItems": 20,
"description": "Specifies the type of event. For supported types, please see: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch?tabs=xmlmanifest#supported-events.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 64
},
"actionId": {
"type": "string",
"description": "The ID of an action defined in runtimes. Maximum length is 64 characters.",
"maxLength": 64
},
"options": {
"type": "object",
"description": "Configures how Outlook responds to the event.",
"properties": {
"sendMode": {
"type": "string",
"enum": [
"promptUser",
"softBlock",
"block"
]
}
},
"additionalProperties": false,
"required": [
"sendMode"
]
}
},
"additionalProperties": false,
"required": [
"type",
"actionId"
]
}
}
},
"additionalProperties": false,
"required": [
"events"
]
}
{
"requirements": {
"capabilities": [
{
capabilities object
}
],
"scopes": [
"mail | workbook | document | presentation"
],
"formFactors": [
"desktop | mobile"
]
},
"events": [
{
"type": "{string}",
"actionId": "{string}",
"options": {
options object
}
}
]
}
{
"type": "object",
"properties": {
"requirements": {
"$ref": "#/definitions/requirementsExtensionElement"
},
"events": {
"type": "array",
"maxItems": 20,
"description": "Specifies the type of event. For supported types, please see: https://review.learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch?tabs=xmlmanifest#supported-events.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 64
},
"actionId": {
"type": "string",
"description": "The ID of an action defined in runtimes. Maximum length is 64 characters.",
"maxLength": 64
},
"options": {
"type": "object",
"description": "Configures how Outlook responds to the event.",
"properties": {
"sendMode": {
"type": "string",
"enum": [
"promptUser",
"softBlock",
"block"
]
}
},
"additionalProperties": false,
"required": [
"sendMode"
]
}
},
"additionalProperties": false,
"required": [
"type",
"actionId"
]
}
}
},
"additionalProperties": false,
"required": [
"events"
]
}
Properties
Examples
{
"events": [
{
"type": "newMessageComposeCreated",
"actionId": "onNewMessageComposeCreated"
},
{
"type": "messageSending",
"actionId": "onMessageSending",
"options": {
"sendMode": "promptUser"
}
}
]
}