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

How to capture all assigned planner task user ids to create new task with same users

Hello,

 

I have a trigger on when a planner task is completed in a plan bucket to open a new planner task assigned to the same planner task assignees of the closed one and put it in the next appropriate bucket (sort of a process flow guide on main tasks in lifecycle).

 

When I grab the Assigned UserID field of the one that's closed, it only grabs the one person, not everyone.  

When try to use the Planner Assigned User ID it auto creates "apply each", so I'm guessing that I'm missing a step to grab all of the user IDs in the task and it just grabs the last one.

 
 

Any ideas for this novice Flow user?

Hoping it's something simple that I've missed.

Thanks.

2 REPLIES 2
ScottShearer
Super User III
Super User III

@LC1Ama 

One way of approaching this is to first initialize an array variable.  Loop through the users to whom the task was assigned and append the IDs to the variable.  Then, loop through the array after creating the new task and add the users to the task using an Add assignees to a task action.

 

 

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

Scott

Thanks Scott!

Sounds ideal 🙂  However, I haven't really any experience yet with the way to loop through the array and append the information in the Flow tool (I can do it in code but not the Flow wysiwyg.  Any chance you can show me a sample set up so I get the concept of how to do that in the tool?

 

Lisa

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (38,122)