Hi,
Probably an easy one but I'm stuck. Hopefully someone can help please.
I have a button which will create a number of different Planner tasks. The OnSelect formula is:
ForAll(Tasks,Planner.CreateTaskV2(OPGplanId,TaskTitle,{bucketId:TestbucketId,dueDateTime:DatePicker1.SelectedDate+TaskAddDays,assignments: LookUp(Roles, EmployeeRole = TaskAssignedTo, EmployeeId)}))
All is working fine, except the 'assignments' part - I don't think I'm quite getting my head around the LookUp. I am trying to find the id for the assignments on another table that lists all the roles.
My 'Tasks' table looks like:
| Task Title | TaskAddDays | TaskAssignedTo |
| Test task 1 | 1 | Head of Shared Services |
| Test task 2 | 2 | Head of Customer Services |
| Test task 3 | 3 | PRO |
My 'Roles' table looks like:
| EmployeeRole | EmployeeId |
| Head of Shared Services | one@sample.com |
| Head of Customer Services | two@sample.com |
| PRO | three@sample.com |
Can anyone help please?
Thanks!