Skip to content

Commit 7dc18dc

Browse files
[All hosts] (add-in commands) Add information about the Office.actions.associate call (#2217)
1 parent 9971b68 commit 7dc18dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/manifest/action.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Action element in the manifest file
33
description: This element specifies the action to perform when the user selects a button or menu control.
4-
ms.date: 02/29/2024
4+
ms.date: 02/28/2025
55
ms.localizationpriority: medium
66
---
77

@@ -49,11 +49,11 @@ The valid child elements very depending on the value of the `xsi:type` parameter
4949

5050
| Element | Description |
5151
|:-----|:-----|
52-
| [FunctionName](#functionname) | Specifies the name of the function to execute. |
52+
| [FunctionName](#functionname) | Specifies the name of the function to run. |
5353

5454
#### FunctionName
5555

56-
Required element when **xsi:type** is `ExecuteFunction`. Specifies the name of the function to execute. The function is contained in the file specified in the [FunctionFile](functionfile.md) element.
56+
Required element when **xsi:type** is `ExecuteFunction`. Specifies the name of the function to run. The function is contained in the file specified in the [FunctionFile](functionfile.md) element. The value specified in the **\<FunctionName\>** element must match the value passed to the `actionId` parameter of the [Office.actions.associate](/javascript/api/office/office.actions) call in the file that contains the function. This ensures that the correct function is invoked when the button or menu item control is selected. To learn more see, [Create add-in commands with the add-in only manifest](/office/dev/add-ins/develop/create-addin-commands#sample-code-for-function-commands).
5757

5858
```xml
5959
<Action xsi:type="ExecuteFunction">

0 commit comments

Comments
 (0)