You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manifest/action.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Action element in the manifest file
3
3
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
5
5
ms.localizationpriority: medium
6
6
---
7
7
@@ -49,11 +49,11 @@ The valid child elements very depending on the value of the `xsi:type` parameter
49
49
50
50
| Element | Description |
51
51
|:-----|:-----|
52
-
|[FunctionName](#functionname)| Specifies the name of the function to execute. |
52
+
|[FunctionName](#functionname)| Specifies the name of the function to run. |
53
53
54
54
#### FunctionName
55
55
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).
0 commit comments