Add a button to document library in Sharepoint online

Copper Contributor

Add a button to document library in Sharepoint online and able to do my custom operations.

6 Replies

@vaibhav_vashist If you are using SharePoint online, you can achieve this using SPFx ListView Command Set extension.

 

For more information on how to develop it, check this 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.

@vaibhav_vashist What kind of operations you want to perform?

 

You can also Create a button to launch a Power Automate flow within document library using JSON formatting. Check below documentation for this:

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.

I want to build CRUD operations on it.

@vaibhav_vashist 

My suggestion will be to develop a SPFx ListView Command Set extension as you will have greater flexibility & more options to perform CRUD operations on documents.

 

You can also use SP PnP JS in SPFx extensions which will help you to perform the CRUD operations more easily. You can find few SPFx extension samples to get started with in below GitHub repository:

SharePoint FrameWork extension samples 


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.

My suggestion is that create PowerApps forms its easy and low code solution for you