Hey all,
Hope you're doing well.
Ok...I'm struggling again on something. I searched a lot, found some answers, they were all saying "yes it works !!" but when i tested ...no it didn't 😛
I have a list on SharePoint with a people picker field. On PowerApps, i have a gallery where I put a Combobox (Combobox1) that i configured so that I can find my users in it . I've put this in the "Item" property of my combobox :
Office365Users.SearchUser({searchTerm:ComboBox1.SearchText})
That works.
I have a save icon on each item of my gallery, when I click it , the Patch function saves all the values of the current gallery item except the people picker that says blank.
Patch(KeyExperts,ThisItem,{KEDPID:varID,KEDept:varDept,KEProc:varProc,KEAct:TextInput34.Text,KEFunction:Dropdown11.Selected,KELocation:Dropdown12.Selected,KEDesc:TextInput45.Text, Expert: XXXXXX, OutsourcedExpert:TextInput47.Text, GallerySort:1});
The people picker field is "Expert" and i tried several things...
* Combobox1.selected.value
* Combobox1.SelectedItems
* I found 3 or 4 different versions using odata attributes
* the last one i'm trying is coming from a post i found in the forum (and that is pretty similar to something i tried before :
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",Claims:"i:0#.f|membership|"&ComboBox1.Selected.Mail,DisplayName: ComboBox1.Selected.DisplayName}
The problem is when i do this, PowerApps shows an error and says it missing the Department, then I add it so then it's missing the job title, i add it then it's missing something else and something else etc...and i end up with the system asking me to add things that do not exist (I mean that i can't find them in the list of attributes)
Would one of you be able to help me and explain me how i can patch my combobox-people picker to my people picker field in my SharePoint list ?
Thanks a lot in advance for your time.