Hi, I am trying to use patch to edit a SharePoint list to 'allocate' a user to a task.
I initially have a tasking form where people will submit tasks but then I want a separate screen to be able to allocate the task to a user from within a gallery.
I have a text input and combo box containing users display names to search for a user and a text input box to add an email address and have set these up to be visible when a button is pressed, and then a save button appears when an name is selected in the combo box.
For info: the Name field is a person or group field in SharePoint and the Email field is a single line of text field.
I am quite a beginner at power apps so just trying to get to grips with the formulas/language. There are no error messages but it is patching the email address to the SharePoint list but not patching the user that is selected? Any idea why this is?
Below is the formula in my save button:
UpdateContext({LetsEdit: false});
Patch(
'Allocations List Power Apps', ThisItem, {Email: DataCardValue67_4.Text}, {'Name ({Name})': DataCardValue47_4.SearchText});
Navigate(
'Task Allocations Screen',
ScreenTransition.CoverRight
)
Thanks in advance!