Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow Skipping Stages

(0) ShareShare
ReportReport
Posted on by 39

Hi All.

 

Wondering if anyone can help me out. If my test run looks like this, does it mean it's skipping the 'Days Used 2' stage? And if so, how do I make it run each stage?

 

deanking_1-1601548232403.png

 

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    @Pstork1 .

     

    It was because I was using the Output to generate it rather than the input.

    Just about to try the update part now.

     

    I'll let you know how I get on, really appreciate your support so far!

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    Right okay.

     

    Just got this when running after doing the above.

     

    [
      {
        "message""Invalid type. Expected Object but got Array.",
        "lineNumber"0,
        "linePosition"0,
        "path""",
        "schemaId""#",
        "errorType""type",
        "childErrors": []
      }
    ]
  • Verified answer
    Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: Flow Skipping Stages

    The output doesn't go in the schema.  The output gets pasted into the dialog that comes up when you click on the 'Generate from Sample' button.

    image.png

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    Hi @Pstork1.

     

    I've run a test run to get the filter array output but when I copy and paste it into the schema it's giving me an error.

     

    Not sure which part I'm supposed to be pasting it to this field?

  • Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: Flow Skipping Stages

    Once you've filtered the output to get it down to just the one record you'll need to do a Parse JSON step to identify the different fields in the array. Use the output of a successful run up to the Filter array to get the sample to put into the Parse JSON to create the schema.  After that you'll see the individual fields in the array in dynamic content.  Then do your Update action in the apply to each.

    image.png  


     

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    There's only one entry for it to find.

     

    I thought it would be an 'Apply to each' but not sure how to get it to work.

     

    This is what I thought would work but it keeps causing it to error.

     

    Not sure how to use the First() function.

     

    deanking_0-1601567723381.png

     

  • Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: Flow Skipping Stages

    I'm assuming that after you filter there is only one item left.  But remember its still an item in a collection of items.  So to update it you'll need to either use the First() function to get the first record in the output from the filter or run the output of the filter command through an Apply to Each loop.  If there is only one item after filtering you can just run the Apply to each and Update the item inside the loop.  At that point all the details should be available as dynamic content.  I'm assuming you want to use the current values to calculate and update to new values.

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    @Pstork1 I didn't even know Filter Array existed so thanks for this.

     

    Right so, I've put that in place and now it's running and the filter is working.

     

    The only part I have left to do it then to update the item that it found.

     

    So now it has found data in the 'Holiday Allocations List' and then successfully filtered out the item with the same 'Display Name'.

     

    How do I then use that found item to update the details. I know there is an 'update item' option but it doesn't pull through the specific item that it previously found. I hope this makes sense.

     

    deanking_0-1601566412423.png

     

  • Pstork1 Profile Picture
    65,946 Most Valuable Professional on at
    Re: Flow Skipping Stages

    Is this for an OData Filter in the Get Items?  If so, you can't do an OData filter on a Person or Group column.  You need to do Get Items and then filter the resulting array.  Like this

    image.png

  • deanking Profile Picture
    39 on at
    Re: Flow Skipping Stages

    That's right, it's a Person/Group column. I didn't realise that would be the case! I'm glad I know that now so thank you for the help.

     

    I could do with some connections who know Power Automation and work with it as right now, I'm just self-taught and I'm heavily relying on forums/resources to learn more about it. 😂

     

     Just added in the tweak and this is what I'm getting when running a test.

     

    deanking_0-1601565170803.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,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow