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 / Is there an action to ...
Power Automate
Unanswered

Is there an action to not show a workflow run in the flow history if a certain condition is not met?

(0) ShareShare
ReportReport
Posted on by 31

Hi all,

 

Newbie to power automations here, but I have a basic work flow set up to copy files from Site A to Site B, and Site B to Site A, when the files are created or modified in specific subfolders defined using a conditional statement.

 

So let's say the only folders I'm interested in are "Monthly, Quarterly, and Yearly". Let's say I'm not interested in new files in any other folders. I only want to see successful and failed workflows if the subfolders consist of "Monthly", "Quarterly", or "Yearly" folders. I do not want the workflow history if any other folder is touched.

So if my condition is "Folder Path contains [Monthly OR Quarterly OR Yearly], and it performs the copy action when the expression is true, is there a way on the false expression to remove the flow action from the history.

 

Otherwise I am going to see thousands of workflows each week, when for system health I'm really only interested in actions affecting the specified folders.

 

Thank you!

Sincerely,

Dave Childers

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    The flow history will show any flow that runs.  So the only way to keep a flow out of the flow history would be to use a trigger condition that prevents the flow from running when that trigger condition isn't met.  Here's a good introduction to trigger conditions.

    Power Automate Trigger Conditions made EASY - Power Platform Community (microsoft.com)

  • dchilders85 Profile Picture
    31 on at

    I Appreciate the response. That's too bad, because building it on the specific folders would mean having to build 500-600 individual workflows. Right now I have it *almost* working with two workflows that trigger with any change in the library, but stops at the first conditional that checks the specific folder path with the triggering item.

  • mahoneypat Profile Picture
    1,720 on at

    You could use a trigger condition like this in the settings of your trigger.  That way the flow will only trigger when the file is created in one of your Folders of interest.  Replace Folder1 and Folder2 with Yearly, Monthly, etc..

     

    @Anonymous(contains(triggerOutputs()?['body/{Path}'], 'Folder1'), contains(triggerOutputs()?['body/{Path}'], 'Folder1'))

     

    mahoneypat_0-1637463006662.png

     

    Pat

     

  • dchilders85 Profile Picture
    31 on at

    Mahoneypat,


    Super! This looks like it's working perfectly! I would never have figured this out without your help, only been using Power Automation flows for a few weeks.

     

    Sincerely,

    Dave Childers

  • Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    If you had looked at the article I posted in my reply you would have found the exact same information.  

  • dchilders85 Profile Picture
    31 on at

    Ah, sorry about that - I guess I overlooked the article. Thank you, to both of you!

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