Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

How to partial run a flow for testing

(0) ShareShare
ReportReport
Posted on by 148

@wskinnermctc 

 

If I have a flow with 10 steps , is it possible to to test run the flow for only the first 7 steps without deleting last 3 steps;

 

For example, I can do this in a javascript. How can I do the same in PA?

 

/*starting dataset*/
const data = [1,2,3,4,5];

/*mutate the same dataset by multiplying each element by 2*/
const stepOne = data.map((d,i,r)=>r[i]=d*2);

/*get rid of the last element from the mutated dataset*/
/*const stepTwo = data.splice(-1,1);*/

console.log(data); /*returns [2, 4, 6, 8, 10] since stepTwo is commented out, js execution happens till stepOne*/
console.log(data); /* if stepTwo was not commented out it would have returned [2, 4, 6, 8]*/

 

 

Thank you in advance

 

  • smpa01 Profile Picture
    148 on at
    Re: How to partial run a flow for testing

    @VictorIvanidzeThanks worked !!!

     

     

     

  • VictorIvanidze Profile Picture
    12,214 on at
    Re: How to partial run a flow for testing

    Click "Add an action", then select "Control", then select "Terminate".

  • smpa01 Profile Picture
    148 on at
    Re: How to partical run a flow for testing

    Thanks; but from where @VictorIvanidze 

     

    smpa01_0-1707315806584.png

     

  • Verified answer
    VictorIvanidze Profile Picture
    12,214 on at
    Re: How to partical run a flow for testing

    Insert Terminate action after 7th step.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow