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 / Invoke a trigger on ch...
Power Automate
Answered

Invoke a trigger on check-in of document

(2) ShareShare
ReportReport
Posted on by 11

Hello Team,

 

Can you please let me know if there is any option to trigger a flow when a document is checked-in/checked-out/published/minor versio checked-in.

 

Thanks in advance.

 

 

Thanks & Regards,

Bhanu

Categories:
I have the same question (0)
  • vecerpa Profile Picture
    786 on at

     I'm also interested for answer to this as from description about this trigger there is bigger detail what modified exactly means. But I'm pretty sure that the level you are asking @BhanuChintha2 will not be reached for checking of item.

    P.

  • Community Power Platform Member Profile Picture
    on at

    Currently, there aren't any triggers available for this. If you want these as a trigger, make sure to add this to the ideas forum!

  • v-yuazh-msft Profile Picture
    on at

    Hi @ BhanuChintha2,

     

    To trigger a flow when a document is “checked-in/checked-out/published/minor versio checked-in” in sharepoint document library is not supported in Microsoft flow currently.

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

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

     

    Regards,
    Alice Zhang

  • deolgoria Profile Picture
    11 on at

    @BhanuChintha2  I need this same functionality.  Two weeks ago I created an idea for the Flow team here: https://powerusers.microsoft.com/t5/Flow-Ideas/Expose-SharePoint-Library-quot-Checked-Out-To-quot-column/idi-p/92908

     

    At this point I'm going to have to use an old-style SharePoint workflow until this is implemented.   

     

  • Verified answer
    Steven12345 Profile Picture
    28 on at

    I managed to achieve this function.  Although the process is a bit convoluted. It does work.

     

    Steps are

    1. "when file is created or modified"

    2. "Send a HTTP Request to SharePoint"

    3. Parse JSON

    4. Check Condition

    5. is status == checked in, then do something, else terminate

     

    HTTP URI is:

    _api/web/getFileByServerRelativeUrl('/sites/TestFileShare/@{body('Get_file_properties')['{Path}']}@{body('Get_file_properties')['{FilenameWithExtension}']}')/checkOutType

     

    t1.PNG

     

     

    t2.PNG

     

    t3.PNG

  • deolgoria Profile Picture
    11 on at

    Thanks for this. 

  • Steven12345 Profile Picture
    28 on at

    As a follow up - one problem I ran into was if I updated the file properties I ran into the recursion issue whereby the modified file trigger was called again so I was stuck in an infinite loop.  I have resolved this by checking the approved status of my file.  If the file was approved there was nothing for me to do.  1 is approved, so just terminate the flow. One could also check the checkout status or some other variable.

     

    x1.PNGx2.PNG

  • Community Power Platform Member Profile Picture
    on at

    Thanks for the clue...and if you want to get the Approval status (by leveraging the out-of-the box SharePoint content approval feature).. here's how I did it:

     

    2019-01-21_15-17-40.jpg

  • Joe3 Profile Picture
    44 on at

    you're amazing dude 

  • spot28 Profile Picture
    15 on at

    Simpler Method. In the file properties is a property 'Checked Out'

    Capture2.JPG

    I get this from the dynamic content and before performing the desired action, check if 'Checked Out' equals false. If it is  then perform the action, otherwise cancel.Capture.JPGo

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard