Discard Check Out File

How to discard a check out of a file in a SharePoint Online library using a Power Automate flow.

URI

Headers

Body

Not applicable

Screenshot with example

Sample data
SiteId – contoso.sharepoint.com,15ec34b0-5d50-4d83-8235-eb2bc48d8799,062116f0-a749-4dbd-a6c0-f771d8ea4ec9
ItemId – 01PZBZOZ4ELECFVYERPFC32VER7LCQ6HGM

discardcheckoutfile

Expected response

HTTP statusCode 204

Copy/paste example

Resources

driveItem: discardCheckout

That’s it, Happy testing!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.