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

Community site session details

Session Id : iIzZraVu5fd9OfF+M3dwPn
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 20 Nov 2021 18:01:24 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

  • dchilders85 Profile Picture
    31 on 22 Nov 2021 at 15:15:01
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

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

  • Pstork1 Profile Picture
    67,356 Most Valuable Professional on 21 Nov 2021 at 23:11:31
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

    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 21 Nov 2021 at 20:42:50
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

    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

  • mahoneypat Profile Picture
    1,720 on 21 Nov 2021 at 02:50:30
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

    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 20 Nov 2021 at 20:39:29
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

    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.

  • Pstork1 Profile Picture
    67,356 Most Valuable Professional on 20 Nov 2021 at 18:41:19
    Re: Is there an action to not show a workflow run in the flow history if a certain condition is not met?

    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)

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete