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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Running multiple condi...
Power Automate
Unanswered

Running multiple conditions concurrently

(0) ShareShare
ReportReport
Posted on by

Good morning Power Automate Community,

 

I've set up a small flow as part of a wider system which allows files to be moved from one area of Sharepoint to another and also send email notifications to make people aware that a file has been moved into their folders.

A flow previous to this one uses a "Yes/No" column to allow the user to tick the box within a specific column and this triggers to file to move to what I am dubbing a "failsafe" folder.

Provided the user has named the file correctly, my currently flow should search for a 5-digit number within the Name of the file and will move the file to a relevant folder based on the number it finds.

 

The first step checks for when a file is moved to my "failsafe" folder that sits within Sharepoint: when a file is created.PNG

 

The next step gets the file properties for the files that are sitting within that "failsafe" folder:

Get file properties.PNG

 

The "Apply to each" grabs the "Body/value" properties from the Get files properties action and then I have parallel conditions which check the "Name" property (gleamed from the get files properties action) contains a list of 5-digit codes. If the condition is true for one of the two below 5-digit codes it should run the move file action and also the send an email notification action:

Condition 1.PNG

My flow suggests it is succeeding each time I test this, however I can see that the flow appears to be "skipping" when it reaches the conditions, despite one of the 5-digit codes being present in the file name.

 

Is there anything anyone can suggest might be going wrong here?

 

 

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,340 Moderator on at

    Hi @Karac,

     

    For whatever reason, condition "contains" operator doesn't work as expected, see following testings:

     

    Using contains operator:

    SamLed_5-1709204567893.png

     

    Results:

    SamLed_1-1709203876288.png

     

    Using "contains" function:

    SamLed_2-1709204091770.png

     

    Results:

    SamLed_3-1709204128755.png

     

    Conclusion: Consider using "contains" function instead.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • Karac Profile Picture
    on at

    Thanks @SamLed, I'll give that a go 🙂

  • SamLed Profile Picture
    2,340 Moderator on at

    Hi @Karac,

     

    I finally manage to make contains operator working by replacing single quotes by double quotes:

     

    SamLed_0-1709204910631.png

     

    results:

    SamLed_1-1709204952656.png

     

    That was the "Whatever reason" 😛

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard