The extensions.requirements object specifies the scopes, form factors, and Office JavaScript library requirement sets that must be supported on the Office client in order for the add-in to be installed. Requirements are also supported on the ribbon, runtime, alternates, and autoRunEvents child properties to selectively filter out some features of the add-in. For more information, see Specify Office Add-in requirements in the unified manifest for Microsoft 365.
{
"type": "object",
"minProperties": 1,
"properties": {
"capabilities": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifies the name of the requirement sets that the add-in needs to run.",
"maxLength": 128
},
"minVersion": {
"type": "string",
"description": "Identifies the minimum version for the requirement sets that the add-in needs to run."
},
"maxVersion": {
"type": "string",
"description": "Identifies the maximum version for the requirement sets that the add-in needs to run."
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"scopes": {
"type": "array",
"description": "Identifies the scopes in which the add-in can run. For example, mail means Outlook.",
"maxItems": 4,
"items": {
"type": "string",
"enum": [
"mail",
"workbook",
"document",
"presentation"
]
}
},
"formFactors": {
"type": "array",
"description": "Identifies the form factors that support the add-in. Supported values: mobile, desktop.",
"minItems": 1,
"maxItems": 2,
"items": {
"type": "string",
"enum": [
"desktop",
"mobile"
]
}
}
},
"additionalProperties": false
}
{
"type": "object",
"minProperties": 1,
"properties": {
"capabilities": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifies the name of the requirement sets that the add-in needs to run.",
"maxLength": 128
},
"minVersion": {
"type": "string",
"description": "Identifies the minimum version for the requirement sets that the add-in needs to run."
},
"maxVersion": {
"type": "string",
"description": "Identifies the maximum version for the requirement sets that the add-in needs to run."
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"scopes": {
"type": "array",
"description": "Identifies the scopes in which the add-in can run.",
"minItems": 1,
"maxItems": 4,
"items": {
"type": "string",
"enum": [
"mail",
"workbook",
"document",
"presentation"
]
}
},
"formFactors": {
"type": "array",
"description": "Identifies the form factors that support the add-in. Supported values: mobile, desktop.",
"minItems": 1,
"maxItems": 2,
"items": {
"type": "string",
"enum": [
"desktop",
"mobile"
]
}
}
},
"additionalProperties": false
}