cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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

1 REPLY 1
Dual Super User III
Dual Super User III

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

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (9,584)