Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ORUsqD5EehSdnNTHodMil9
Power Automate - Building Flows
Unanswered

File is created- not recognised by flow

Like (0) ShareShare
ReportReport
Posted on 18 Mar 2021 17:52:53 by 78

Hi,

In my sharepoint library where "require check out" is enabled, I set up a flow to update item properties when one is created. The flow doesn't trigger as the file is invisible as checked out to the user who added that file. Checking in the file doesn't trigger it neither. What might be the problem and how to solve it? 

  • v-duann-msft Profile Picture
    on 01 Apr 2021 at 08:47:17
    Re: File is created- not recognised by flow

    Hi @OrcaDeWils 

     

    In that case, maybe we could add a delay action to wait for few hours and then continue to next action. Because we can't control user behavior.

    v-duann-msft_0-1617266805460.png

     

    Hope it helps.

     

    Best regards,

    Anna

  • OrcaDeWils Profile Picture
    78 on 24 Mar 2021 at 10:04:51
    Re: File is created- not recognised by flow

    Hello @v-duann-msft ,

     

    Thank you for help.

     

    However it seem like the flow is not triggered anyway. Let's say someone left the file checked out after adding and checked it in after few hours. It doesn't work anymore? Could you please advise? 

  • v-duann-msft Profile Picture
    on 24 Mar 2021 at 08:23:30
    Re: File is created- not recognised by flow

    Hi @OrcaDeWils 

     

    Thank you very much for update. 

     

    Yes, we do have 'When a file is created in a folder' trigger which only applies to file creation.

    v-duann-msft_0-1616574117014.png

    https://docs.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/sharepoint-connector-actions-triggers

     

    Hope it helps.

     

    Please click Accept as Solution if my post is helpful to you. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up

     

    Best regards,

    Anna

  • OrcaDeWils Profile Picture
    78 on 23 Mar 2021 at 13:39:09
    Re: File is created- not recognised by flow

    I have managed to solve the problem, but is there a way this can be triggered only when file is created? I only need the file to be updated once when created. 

  • OrcaDeWils Profile Picture
    78 on 23 Mar 2021 at 11:06:17
    Re: File is created- not recognised by flow

    @v-duann-msft I am getting error for serverRelativeUrl, parameter name is not supported for the serverRelativeUrl parameter 

  • OrcaDeWils Profile Picture
    78 on 23 Mar 2021 at 10:28:44
    Re: File is created- not recognised by flow

    Anna, Does the condition mean that if checkouttype equal to 0 file is not or is checked out? 

  • OrcaDeWils Profile Picture
    78 on 23 Mar 2021 at 09:52:18
    Re: File is created- not recognised by flow

    Hi @v-duann-msft, thank you for this. I will give it a try in just a moment and will let you know about the result.

  • v-duann-msft Profile Picture
    on 19 Mar 2021 at 05:34:54
    Re: File is created- not recognised by flow

    Hi @OrcaDeWils 

     

    Thank you for posting.

     

    According to your description, you would like to update item properties when file is created. But due to SPO internal feature ‘checkin/checkout’ enabled, the trigger is not able to detect the new file creation directly.

     

    Actually, it’s normal behavior as flow can’t detect file checkout/checkin shatus by design. There aren't any triggers available for this. But we do have workaround for this to use ‘send an http request to sharepoint’ instead.

     

    Steps are:

     

    "when file is created or modified"

    "Send a HTTP Request to SharePoint"

    Parse JSON

    Check Condition

    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

     

    v-duann-msft_0-1616132048093.png

     

    v-duann-msft_1-1616132048104.png

     

    v-duann-msft_2-1616132048107.png

     

    https://powerusers.microsoft.com/t5/Building-Flows/Invoke-a-trigger-on-check-in-of-document/td-p/96062

     

    If you would like this feature to be added in Microsoft Flow, please go to this link and vote here:

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/SharePoint-trigger-for-File-Checked-Out/idi-p/553062

     

    Hope the content above may help you.

     

    Thanks

    Anna

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard