Showing results for 
Search instead for 
Did you mean: 
New Member

how do i check-in document after creation ?

Hi all,

I have a flow which takes a document in a mail and saves it in a folder based on the document name. Everything works great, but the doucument is check-out. I want to add an action that checks in the docvument after creation do i do that ?



Community Support
Community Support

Hi @ JesperTorp,


Do you want to check in the a file in sharepoint library using microsoft flow?


Checking in/out a file in sharepoint library is not supported in microsoft flow currently,

I afraid that there is no way to achieve your needs in Microsoft Flow currently.


If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:



Alice Zhang

Advocate I
Advocate I

Use Send HTTP request to SharePoint then you can checkin and out


In my Flow i update a document library with the URL to which tenant i have copied files, so i do filtering on what is needed to be updated, then i Check out on all the files, update and so on and check in as last step, the reason is in my case Flow can update 1 property 3 times in same flow.


And the variables is going to be deleted in my flow, so disregard them its only the value in them there is interesting:






Hello, @JesperTorp!

Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify! Thank you for being an active member of the Flow Community!



Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

Is there any method of discardcheckout()??

Not applicable

Before going to flow, one conern when your file is created in the library,
it seems its get checked out by the flow user(modified by and created by).
It means in your library settings there is a file checked out rule there.
If not checked out required, why we don't remove that rule?

To me rule is here: Library-->Library Settings-->Versioning Settings-->Require Check Out (Yes/No)
If you select No, your document will not be checked out.

Not applicable

@makp , I've tired your recommendation but keep getting an error when trying to check out the document that says: 

"Server relative urls must start with SPWeb.ServerRelativeUrl\r\nclientRequestId: 1b2c18bd-e45b-48ff-8600-c9d6a2381748\r\nserviceRequestId: 1f93de9e-e035-8000-8f19-346734c97f3d"
Any idea on why I'd be getting this error?  Here is how my HTTP is setup, however I've tried it about a dozen different ways and always get the same error. 
Not applicable

I figured it out.  I needed to add more of the url.  So this is what I changed the relative url to and it worked. 



Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (6,403)