How to Add SharePoint Check-In and Check-Out Buttons with JSON
Question details
The user wants to create custom check-in and check-out buttons in a SharePoint document library using JSON column formatting to simplify the file management process.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Customizing document library views to provide users with a faster, one-click method to check documents in and out.
- Observed behavior
- SharePoint native JSON column formatting does not include a built-in customRowAction parameter for checking documents in or out, requiring alternative development solutions.
Ensure you have Site Owner or Designer permissions in your SharePoint Online environment to edit view formatting, and verify that the 'Require Check Out' setting is enabled in your document library settings.
Consult the Microsoft SharePoint Development Community
Since native JSON formatting lacks direct check-in/out actions, the best path is to consult SharePoint developers for custom SPFx or Power Automate workarounds.
SharePoint's column formatting JSON does not currently provide a straightforward customRowAction parameter for document check-in or check-out. Because this involves advanced SharePoint Online customization, you will likely need to use a Power Automate flow triggered by JSON or a custom SharePoint Framework (SPFx) Field Customizer to achieve the desired button functionality.
Navigate to the official Microsoft Q&A platform, specifically the section tailored for SharePoint developers.
Post a detailed question explaining your specific library setup and your goal to bypass the standard multi-step check-in process using a JSON button.
Tag your question with 'sharepoint-dev' and 'office-sharepoint-online' to ensure it reaches the appropriate technical experts who can provide custom code solutions.

Simplify Your Document Workflows with WPS Office
While SharePoint requires complex JSON coding for custom file management, WPS Office provides an intuitive, ready-to-use interface for your document collaboration needs. As a lightweight and free Microsoft Office alternative, it ensures high productivity without the steep technical learning curve.
- 1. Download the installer: Visit the official WPS Office website and click the free download button.
- 2. Install the software: Run the downloaded installation file and follow the on-screen prompts to set up the suite on your device.
- 3. Open and collaborate: Launch WPS Office to instantly open your existing Office documents and enjoy an intuitive editing experience.

Frequently Asked Questions
Can I use customRowAction to check out a document in SharePoint JSON?
No, SharePoint's native JSON column formatting does not currently support a customRowAction specifically designed for document check-in or check-out operations. You must use workarounds like triggering a Power Automate flow.
How can I bypass the standard SharePoint check-out process?
You can create a Power Automate flow that checks out a selected document and then format a column with JSON to display a button that triggers this specific flow using the 'executeFlow' action.
Where can I find JSON formatting examples for SharePoint?
Microsoft provides an official GitHub repository called 'sp-dev-list-formatting' where developers share custom JSON examples for column and view formatting, including buttons that trigger flows.




