cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Creechyy
New Member

Office365Users selection is not submitting to SharePoint List in people picker columns

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.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Creechyy 

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@Creechyy 

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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

This works. Thank you so much!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (38,002)