logo
search
Others

How to Add SharePoint Check-In and Check-Out Buttons with JSON

Camila MilosovichCamila Milosovich Oct 16, 2026 869 views

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.

How to Add SharePoint Check-In and Check-Out Buttons with JSON
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.
Before you start

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.

Solution 1Recommended

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.

1
Visit Microsoft Q&A

Navigate to the official Microsoft Q&A platform, specifically the section tailored for SharePoint developers.

2
Create a detailed post

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.

3
Use correct tags

Tag your question with 'sharepoint-dev' and 'office-sharepoint-online' to ensure it reaches the appropriate technical experts who can provide custom code solutions.

Consult the Microsoft SharePoint Development Community
Alternative Workaround: A common workaround is to create a Power Automate flow that handles the file check-out action, and then use the executeFlow action in your JSON formatting to trigger that flow via a button.
Free Microsoft Office alternative

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. 1. Download the installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the software: Run the downloaded installation file and follow the on-screen prompts to set up the suite on your device.
  3. 3. Open and collaborate: Launch WPS Office to instantly open your existing Office documents and enjoy an intuitive editing experience.
Highly compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Built-in file protection and version history tools without complex setups.Lightweight installation with fast document loading speeds.Free alternative with a highly familiar user interface for seamless migration.
microsoft office alternative - wps office

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.