Hi
I have created a form where multiple fields are filled automatically based on a selection. Other fields are working just fine but person type data won't update to a SharePoint list. I wonder what's wrong?
Details:
1. User chooses an action from a drop-down "ActionDropdown" (Distinct data from a field in the source SharePoint list "Actions")
2. Multiple dependent drop-downs are automatically filled based on the selected Action (data from columns in source SP list "Actions"). I have added drop-downs to the DataCards (thanks to @RezaDorrani for instructions, https://www.youtube.com/watch?v=Qzpjq008cBY) and used the following code for Items:
Distinct(Filter(Actions; Action = ActionDropdown.Selected.Result);RelevantColumn) if the relevant column is text type
Distinct(Filter(Actions; Action = ActionDropdown.Selected.Result);RelevantColumn.Value) if the relevant column is choice type
Distinct(Filter(Actions; Action = ActionDropdown.Selected.Result);RelevantColumn.DisplayName) if the relevant column is person type (SharePoint settings for the column: no groups allowed, all users)
3. Finally, when the user submits the form, the data will be updated to another target SharePoint list "Reports" where I have corresponding columns with same data types (text, choice or person). For Update of DataCards I have the following code:
RelevantDropdown.Selected.Result if the relevant column is text type
RelevantDropdown.SelectedText if the relevant column is choice type
RelevantDropdown.Selected if the relevant column is person type
I don't get any errors but only the text and choice columns will update correctly to the target SharePoint list "Reports" while the person column won't update. I have also tried to set the target column as text or choice type instead of person type in the target "Reports" list while keeping the source column as person type in the source "Actions" list. I only need to get the DisplayName into the target column (could be text type) but wouldn't mind if the entire record as a person type gets copied. However, I need to keep the source column as person type.