Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Simple flow... wrong results

(1) ShareShare
ReportReport
Posted on by 68
The 'Get Items APC Offers' action in the attached should return items from a SP list, where Title=ProjectID (extracted in action 'Get Items Project Center'; while action Get Items Project Center returns 50 items, action Get items APC Offers only returns 4 items (whereas it should return x times 50).
 
Note: the values in the two columns are in the format 00795 (text).
 
Have tried 5-6 different approaches and nothing seems to work.
 
Please help!
 
 
  • Nived_Nambiar Profile Picture
    17,929 Super User 2025 Season 2 on at
    Simple flow... wrong results
     
    Did you test that Get Items action by hardcoding the Project Id instead of using dynamic content for testing purposes ?
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • Suggested answer
    trice602 Profile Picture
    13,995 Super User 2025 Season 2 on at
    Simple flow... wrong results
    Hi there!
     
    You likely have some whitespace around your ProjectID in the list and is the root cause.  Please try:

    Title eq 'trim(items('Apply_to_each')?['ProjectID'])'
     
     
    But that said, look at your output from the first Get items Project Center and paste it in here.  We can easily tell by looking at the output, just paste in here.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • creativeopinion Profile Picture
    10,458 Super User 2025 Season 2 on at
    Simple flow... wrong results
    @Tetris By default the Get Items action will return 100 items. If your SharePoint list has more than 100 items, you’ll need to toggle on pagination. Not sure how to do that? Check out this section of one of my YT Tutorials.
     
    Also, it's in efficient to nest a Get Items action inside an Apply to Each (aka For each action). This action should be placed outside of the loop. Instead, use a Filter Array action to filter out the items that match.
     
    If you aren't familiar with the Filter Array action, you may be interested in these YT Tutorials:
     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.
    1️⃣ Cross-Referencing Data
    2️⃣ Filtering by Key
    3️⃣ Substring Matching

    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

    IN THIS VIDEO:
    ✓ 3 Ways to Use the Filter Array Action
    ✓ How to use the Scope Action to Group Actions
    ✓ How to Check the Number of Items returned from a Filter Array Action
    ✓ How to Cross-Reference Data in Excel with a SharePoint List
    ✓ How the Filter Array Action Works
    ✓ How to Access the Dynamic Content from a Filter Array Action
    ✓ How to Filter Items by a Key
    ✓ How to Filter Items by Matching a Substring
    ✓ How to Use Multiple Conditions in a Filter Array Action

    ---

    In this tutorial—I’m going to show you a quicker way to get the dynamic content from your Filter Array action—and it doesn’t require writing an expression.

    IN THIS VIDEO:
    ✓ How to Loop Through Filter Array Results in Power Automate
    ✓ Using Apply to Each with Filtered Arrays
    ✓ The Easiest Way to Access Dynamic Content from Filter Array
    ✓ Fixing Nested Apply to Each Actions
    ✓ When to Use Value vs. Body Dynamic Content
    ✓ Simplifying Power Automate Flows with Filter Array
    ✓ Troubleshooting Filter Array and Apply to Each Issues

    ---

    In this video tutorial I’ll go over how to avoid these common mistakes when using the Apply to Each action in a Power Automate flow:
    1️⃣ Looping through a Single Item
    2️⃣ Creating Unnecessary Nested Loops
    3️⃣ Looping through an Unfiltered Array

    At the end of the video I share a few helpful insights when it comes to using the Apply to Each action in your flow.

    IN THIS VIDEO:
    ✓ How to avoid the Apply to Each action with a single item array
    ✓ How to use the item() function to access dynamic content in an array
    ✓ How to prevent unnecessary nested Apply to Each action loops
    ✓ How to use the Select action
    ✓ How to convert an array to a string with the Select action
    ✓ How to use the Filter Query field
    ✓ How to count the number of items in an array
    ✓ How to use a condition control
    ✓ How to use the concurrency control
    ✓ How to set a top count
    ✓ How to use Compose actions for troubleshooting
     
    If you still run into issues while building your flow, share screenshots of your full flow and the logic behind it. 
    Upload a screenshot of your flow in edit mode. Toggle off the new designer, and click each action to expand it. 
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2