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 / Running flow run as a ...
Power Automate
Unanswered

Running flow run as a test

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I would like to understand if there is a way, within a Power automate flow, to check if the running flow has been run as a test or not.

Thanks

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @RobertoRossi,

     

    As far as I am aware you can only see if it was a Test when it has completed in the Status column of the 28-day run history.

     

    That Status column will either show for example Test succeeded/Test failed instead of Succeeded/Failed when it has been running as a test.

     

    testsucceeded_vs_succeeded.png

  • RobertoRossi Profile Picture
    2 on at

    Hi @Expiscornovus 

    Thanks for the answer but the purpose is to make decisions within the flow based on the type of execution (test or not).

    I thought there were some flow properties to query during execution.

    Thanks

     

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @RobertoRossi,

     

    I have double checked the trigger outputs of the Manually trigger a flow action. That specific trigger actions seems to add the value testFlow to the property called x-ms-client-keywords. That might something you are able to check in an expression.

     

    equals(triggerOutputs()['Headers']['x-ms-client-keywords'], 'testFlow')

     

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard