Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

  • Expiscornovus Profile Picture
    31,641 Most Valuable Professional on at
    Re: Running flow run as a test

    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')

     

  • RobertoRossi Profile Picture
    2 on at
    Re: Running flow run as a test

    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
    31,641 Most Valuable Professional on at
    Re: Running flow run as a test

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow