I hope that you can help me with something I’m sure is very simple.
I am trying to set up a powerapp that reads from a sharepoint list. My list is called Employees 2. It is a simple list. I’m not using a gallery in the app. Reading directly from the list.
What I’m trying to do with my power app is Set up a drop down box, select a Employee Name from my Sharepoint List and have it fill the other Labels I have set up. I think I have this working.
My code for my drop down “Employee Name” is : Sort(Distinct('Employees 2','Employee Name'),Result)
My code for my lable3 on my form is: LookUp('Employees 2', 'Employee Name'= Dropdown1.Selected.Result).Title And for label2 is LookUp('Employees 2', 'Employee Name'= Dropdown1.Selected.Result).Department
What I’m wanting is to put in data into the Reviewer Name field called ReviewerInput and write that back to my sharepoint.
The code I have for the input field ReviewerInput is : LookUp('Employees 2', 'Employee Name'= Dropdown1.Selected.Result).'Reviewer Name' To put any names in the field from Sharepoint if they are already there.
So I set up a button at the bottom to do a patch back to my sharepoint. The code I have set up for that is : Patch('Employees 2'.'Reviewer Name',{'Reviewer Name': ReviewerInput.Text})
However I’m getting an error message when I try to patch it back to sharepoint and its not writing anything.
The error message I’m getting is: The data source supplied to the function is invalid.