Hello All,
I am currently developing a PowerApp with my coworker that will collect daily time entries from the employees at the company we work at. The testing on this PowerApp has done okay up to this point.
So, we have two people picker columns in our SharePoint list: Employee and Manager. This is where the user will select their name and their manager's name. (An employee may switch teams from day to day so the manager dropdown is a filtered selection based on department).
These are the formulas I currently have on the PowerApp:
For the Employee DropDown box, in the items, I have:
Office365Users.MyProfile()
For the Employee DataCard, in the update, I have:
DataCardValue2_2.Selected
For the Manager DropDown box, in the items, I have:
Filter(Office365Users.SearchUser({searchTerm:"",top:15}),JobTitle="Project Manager",Department=Office365Users.MyProfile().Department)
For the Manager DataCard, in the update, I have:
DataCardValue3_2.Selected
There is no issue when selecting a profile from the DropDowns, but when the form is submitted, these two people picker columns are left blank.
For the Submit Button, in the OnSelect, I have:
SubmitForm(NewForm1_1);
Navigate(Home)
Along with some other formulas that have had no effect on the form submission process.
Is there a way to solve this issue?
Also, will these two DropDowns work offline? If not, will I have to create a collection to store that data?
Or, should I just create new columns? If so, how?
I am completely open to any and all help.
Thank you.
Solved! Go to Solution.
You are trying to store an Office365 User record to a SharePoint user record. These are both totally different records schemas.
Set your update properties to the formula:
{
Claims:"i:0#.f|membership|" & Lower(DataCardValue2_2.Selected.mail),
Department:"",
DisplayName: DataCardValue2_2.Selected.displayName,
Email: DataCardValue2_2.Selected.mail,
JobTitle:".",
Picture:"."
}
Same for the Manager update property except change the control reference.
I hope this is helpful for you.
You are trying to store an Office365 User record to a SharePoint user record. These are both totally different records schemas.
Set your update properties to the formula:
{
Claims:"i:0#.f|membership|" & Lower(DataCardValue2_2.Selected.mail),
Department:"",
DisplayName: DataCardValue2_2.Selected.displayName,
Email: DataCardValue2_2.Selected.mail,
JobTitle:".",
Picture:"."
}
Same for the Manager update property except change the control reference.
I hope this is helpful for you.
This works. Thank you so much!
What should be the sharepoint column type when you want to use office365user connector?
I am also not able to get the chosen user populated in sharepoint. Even not with the suggested formula. For Items of this field I use 'Office365Users'.SearchUser(). There is no issue when selecting a profile from the DropDowns, but when the form is submitted, the people picker columns are left blank.
When I created the Sharepoint List which is the data source, I also choose 'Person' as column type, maybe that also has to do something with it?
User | Count |
---|---|
252 | |
106 | |
95 | |
50 | |
39 |