Forum Discussion
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.
- Harisirfan_2021Copper ContributorPlease check this and let me know if your issue is solve or not.
https://techcommunity.microsoft.com/t5/sharepoint/create-a-button-in-sharepoint-online/m-p/292256 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.
- vaibhav_vashistCopper ContributorI want to build CRUD operations on it.
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.