Forum Discussion
Sharif Alhennawy
May 20, 2018Copper Contributor
Assign a task to multiple users - PowerApps
Hi,
I'm working on a project through PoweApps and I'd like to know how to assign a Task to multiple users at the same time using {assignments:} ?
already it's working with me with single users only !
- cazczCopper Contributor
This took me way too long to figure out how to implement. Here is an example for anyone else:
Planner.CreateTask(planID,taggedLabVar&"-"&ActionText.Text, {bucketId:bucketID, startDateTime:UUID, dueDateTime:DateValue5.SelectedDate, assignments:Concat(Assignees.SelectedItems,Id,";")})
Assignees is the Combo Box itself. Ignore the start date as a UUID, its just a value I made to use as a primary key for separate table.
- AisFaulknerCopper ContributorI know this is an old post but this worked perfectly for me!
- Eric EatonIron Contributor
Yeah, the same thing happens for me. I haven't seen anything documented about this, but in everything I've tried - the Flow / PowerApps connector for Planner just generally does not support multi-value fields yet. For instance, if you're querying tasks, you can't pull the 'Label' or 'Checklist' value(s) at all.
In this case, you can use the Assignments field, but the label calls it out as a single user. I can't find a way to make it work at all with multiple values - neither by entering multiple lookups / values in the blank in various formats, nor by looking up a multi-value Person field from a SP list.
I hope they keep adding to the Planner connector. Planner is such a wonderfully simple tool, and they're not allowing customizations within it to keep it that way. It would be super helpful if we had more capabilities in Flow and PowerApps to talk with the rest of the data so that we could integrate it into more solutions.
- rthomnbCopper Contributor
Hi there,
It's a semi-colon separated list of strings containing user ids or email addresses of the users to assign this task to. To add more than one, just separate with a semi-colon.
Cheers,
RT
- Eric EatonIron Contributor
Hmmmm... that's one of the formats I tried, but it didn't work for me previously. When I tried again today, the Flow action includes placeholder text that documents that format - and it worked. #woohoo