Apr 16 2020 06:45 AM - edited Apr 16 2020 06:46 AM
Hi,
According to this Microsoft article https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-w... on how to create command set extension, one can publish a command to one or more generic type of lists / document libraries by setting them in the file elements,xml.
For instance, making all custom lists display the command set:
RegistrationId="100"
RegistrationType="List"
However, I want a command set to appear in only one specific list instance rather than in all custom lists / document libraries.
Do you know, how can this be done?
Thank you
Filipe
Apr 16 2020 07:19 AM
SolutionApr 23 2020 08:08 AM
Jun 29 2020 08:14 AM
Hi @Filipe Matos - I think hardcoding the listname is not a great solution. Have a look here :-
https://www.c-sharpcorner.com/article/enabling-an-spfx-listview-command-set-on-a-specific-sharepoint... where the dev uses the site property bag to enumerate the lists guids which will have the functionality.
Would be good if SpFx natively had more scoping options.
Jun 29 2020 11:23 PM - edited Jun 29 2020 11:23 PM
Apr 16 2020 07:19 AM
Solution