FileHandler in the OneDrive context menu in "My Files" is not showing the displayName of the custom actions (submenu missing)

Stefano625 20 Reputation points
2024-06-14T14:07:51.2666667+00:00

When using a Microsoft 365 file handler add-in (OneDrive File Handlers 2.0) with two custom actions. The following inconsistency appears for the context menu in the document library "My Files". Usually, with two custom actions there should be an expandable submenu. But this is missing only for some users and not for others, as I've checked the behavior with two different users.

See the "addIns" definition of the application manifest below.

Observed behavior:

Only in "My Files" in OneDrive, the context menu shows the custom actions differently than in the other document libraries. The "displayNames" are not shown at all, as the sub menu is missing. Rather only the "actionMenuDisplayName" is shown for each custom action which does not seem intended.

Context menu:

  • Open
  • Preview
  • ...
  • actionMenuDisplayName
  • actionMenuDisplayName

Expected behavior:

The expected behavior if there is only one file-handler add-in installed would be the following for the context menu, to have a sub-menu that expands and that shows the displayNames of the custom actions:

Context menu:

  • Open
  • Preview
  • ...
  • actionMenuDisplayName > Submenu containing "displayName" of action 1 and "displayName" of action 2

The default behavior is as expected for the document libraries in SharePoint and Teams (files) even when accessing sharepoint sites in OneDrive via quick access the behaviour is as expected.

Application manifest:

"addIns": [
        {
            "id": "some-id",
            "type": "FileHandler",
            "properties": [
                {
                    "key": "actions",
                    "value": "[{\"type\":\"custom\",\"displayName\":\"Action 1\",\"shortDisplayName\":\"Act 1\",\"icon\":{\"png1x\":\"...icon@1x.png\"},\"url\":\"someEndpoint\",\"availableOn\":{\"file\":{\"extensions\":[\"listOfFiletypes\"]},\"allowMultiSelect\":false}}, {\"type\":\"custom\",\"displayName\":\"Action2\",\"shortDisplayName\":\"Act2\",\"icon\":{\"png1x\":\".../icon@1x.png\"},\"url\":\"someEndpoint\",\"availableOn\":{\"file\":{\"extensions\":[\"listOfFiletypes\"]},\"allowMultiSelect\":false}}]"
                },
                {
                    "key": "appIcon",
                    "value": "{\"svg\":\"...icon.svg\",\"png1x\":\"...icon@1x.png\",\"png1.5x\":\"...icon@1.5x.png\",\"png2x\":\"...icon@2x.png\"}"
                },
                {
                    "key": "actionMenuDisplayName",
                    "value": "Application"
                },
                {
                    "key": "version",
                    "value": "2"
                }
            ]
        }
    ],
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,175 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiajing Hua-MFST 6,915 Reputation points Microsoft Vendor
    2024-06-17T01:46:47.4266667+00:00

    Hi @Stefano625

    I suggest you post a new thread in Microsoft Tech Community --- OneDrive Developer: https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful