web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Checking Out / Checkin...
Power Automate
Unanswered

Checking Out / Checking In a SharePoint document that is linked in a Start and Wait for an Approval action

(0) ShareShare
ReportReport
Posted on by 21

Hi everyone,

 

I have an approval request email reminder flow set up. It is triggered when an item is created in the SharePoint list. One of the variables in the list is a link to the policy document that needs reviewing. This link is included in the Start and Wait for an Approval action. 

 

Is there anyway to add onto this flow so that the document that is linked in the Start and Wait for an Approval action is also checked out in SharePoint so only the approver can access it, make edits, then check it back in? 

 

Top level current flow:

Edit_your_flow___Power_Automate.png

 

Detailed flow:

Edit_your_flow___Power_Automate-2.png

 

 

 

 

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @flyingspoon 

     

    Have you tried using the 'Check out', and 'Check in' actions?

    Jcook_0-1602781781823.png

     

  • flyingspoon Profile Picture
    21 on at

    Hey - @Jcook Yup, I am aware of those actions. I guess my question should be where should they be placed in the flow? Thanks - Flyingspoon

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @flyingspoon 

     

    I would place Check Out before Approval. And Check In after the Approval.

    Jcook_0-1602783568993.png

     

    Note: I have done a small test, and I believe that the check out and check in is done by the SharePoint connection being used in Power Automate

  • flyingspoon Profile Picture
    21 on at

    @Jcook Would a Get Files action be needed since the files would be kept in a document library separate from the list? The list only includes a link to the document. Currently, In the dynamic content for Check Out, the only item showing is the list item ID. 

     

    Edit_your_flow___Power_Automate-4.png

     

     

  • Verified answer
    Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @flyingspoon 

     

    Okay so to get the File ID. Use:

    'Get files (properties only)' On your Library. Than use:

    'Filter array' action to filter the name of the file. (Filter array has to be used since SharePoint uses a calculated formula to get the name of the file. So we cannot use the regular filter query inside the SharePoint Get files action).

    Select the Name dynamic content on the right side of the Filter array. and on the right side put the name of the file without extension. You can use any filter query you like. I am using name just as an example.

    Flow1.png

     

    Now inside the Check out and Check in actions we have to use an expression on the ID so we don't get put into the Apply to each loop.

    My Filter array action is named 'Filter array' so my expression will be:

    first(body('Filter_array'))?['ID']

    This expression will be used on both the Check out action, and the Check in action:

    Flow2.png

     

    NOTE:

    To see what can used for filter. Run the Flow and copy the Get Files output to notepad or some code editor to easily be read.

    You mentioned you already had the Link to the file. So you could even use the Filter array action and filter on the Link

    Jcook_0-1602787732092.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard