web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Variable and apply to ...
Power Automate
Unanswered

Variable and apply to each issue

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard