Compartilhar via


oneWayDependency object

Describes the unidirectional dependency of one app capability (X) to another (Y). If a Microsoft 365 runtime host doesn't support a required capability (Y), the dependent capability (X) won't load or surface to the user.

Properties that reference this object type:

Syntax

{
  "element": {
    "name": "bots | staticTabs | composeExtensions | configurableTabs",
    "id": "{string}",
    "commandIds": [
      "{string}"
    ]
  },
  "dependsOn": [
    {
      "name": "bots | staticTabs | composeExtensions | configurableTabs",
      "id": "{string}",
      "commandIds": [
        "{string}"
      ]
    }
  ]
}

Properties

element

Represents an individual app capability (represented by element) that has a one-way runtime dependency on another capability being loaded.

Required

Constraints

Supported values

dependsOn

Defines one or more app capabilities (each represented by element) required for the specified element to load.

Type
Array of elementReference

Required

Constraints
Minimum array items: 1.

Supported values

Examples

{
    "elementRelationshipSet": {
      "oneWayDependencies" : [
        {
          "element" : {
            "name" : "composeExtensions",
            "id" : "composeExtension-id",
            "commandIds": ["exampleCmd1", "exampleCmd2"]
          },
          "dependsOn" : [
              {"name" : "bots", "id" : "bot-id"}
          ]
        }
      ]
    }
}