Aug 04 2022 04:49 AM
Hi!
How can I customize the toolbar on SharePoint Library?
I want to add a custom button like there
<CommandUIDefinition Location="Ribbon.Templates._children">
<Button
Id="Ribbon.Templates.OfficeDevPnPDownloadAll"
Command="OfficeDevPnP.Cmd.DownloadAll"
Image16by16="/_layouts/15/images/sharepointfoundation16.png"
LabelText="Download All"
Description="Download all files separately"
ToolTipTitle="Download All"
ToolTipDescription="Download all files separately"
TemplateAlias="o1"
Sequence="15"/>
</CommandUIDefinition>
How can I do this using Windows PowerShell ISE?
Aug 04 2022 05:20 AM
@Pavel48n0sh I am not sure if it is possible using PowerShell in modern experience.
I have done this in modern experience previously using SPFx ListView command set. Follow this Microsoft official documentation: Build your first ListView Command Set extension
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Aug 04 2022 05:57 AM
Aug 04 2022 08:37 AM
@Pavel48n0sh If you want to add button in command bar only, you have to do it using SPFx ListView command set.
There is one way using JSON formatting to show the button in list view which will run power automate flow. But, the button will be shown against each list/library item & not in command bar.
Check this documentation: Create a button to launch a Flow
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.