Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Variable and apply to each issue

I have created a flow to check time entries submitted in Dynamics PSA.  The flow is based on this Flow.


I filter users from the entity Bookable Resources and check if their time entries in PSA are less than or equal to 35 hours.


But the problem I have is that name and time is duplicated in my csv.  It is duplicated 259 time in the csv which is the number of users in Bookable Resources.  


Below is the flow hopefully someone can spot where I have gone wrong.



Screenshot 2019-11-24 at 12.04.12.png

Screenshot 2019-11-24 at 12.04.58.pngScreenshot 2019-11-24 at 12.07.42.pngScreenshot 2019-11-24 at 12.08.32.png

Screenshot 2019-11-24 at 12.08.57.png



Here is the output


Screenshot 2019-11-24 at 12.13.19.png

Dual Super User
Dual Super User

Re: Variable and apply to each issue

Its not entirely clear from the screenshots, but you have two loops.  What is the relationship of the loops?  Is the second loop inside the first?  I suspect it isn't which is why you are getting one result repeated for each time the second loop runs, because it is reusing the variable values calculated by the first loop for every loop run in the second.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,810)