I have various fields as per screenshot below

The Assign to field is a dropdown box with the following formula: Office365Users.DirectReports(User().Email).Id
When putting the formula into the onselect for the button:
UpdateContext(
{ SavingStatePrompt: "Task is saving." }
);
UpdateContext(
{
NewTask: Planner.CreateTask(
DropdownPlannerPlan.SelectedText.id,
TextInputPlannerTaskName.Text,
{
bucketId: DropdownPlannerBucket.SelectedText.id,
dueDateTime: DatePickerPlannerDueDate.SelectedDate,
assignments: dropdownSelectedPerson
}
)
}
);
UpdateContext(
{ StartTaskCreatedCallback: true }
)"
"
The line highlighted in red is the issue. I have tried adding .ID and .selectedtext.id amongst other things to the end of it but it doesn't like it hence my issue.
The formula states:

Thanks. Hope this gives you the info needed 🙂