Question

I am developing a ContextMenu command set for sharepoint online for my tenant. I developed the program and tested and from localhost it was working as expected. When I deployed the extension and installed the extension in my site as it is not tenant wide deployment, the extension appeared for all "Document Library" of the site but its not appearing for "Picture Library".

I am assuming my elements.xml definition may have some issue. Here is xml:

<CustomAction
        Title="CopyImage"
        RegistrationId="101"
        RegistrationType="List"
        Location="ClientSideExtension.ListViewCommandSet.ContextMenu"
        ClientSideComponentId="the guid of the extension">
</CustomAction>

I am guessing the issue might be "101" and "List". I found a possible value of RegistrationId=109 from this link, tried this one too, but didnt appear and its still appearing in the document libraries. I would be very greatful if anyone can point me in the right direction.

Was it helpful?

Solution

Update ListTemplateId(ListTemplateId="109") of ClientSideInstance.xml to keep the same as elements.xml(RegistrationId="109") and package.

Uninstall and Reinstall is also a crucial step. And dont forget to change the version of the app.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top