web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps, Office 365...
Power Apps
Answered

Power Apps, Office 365 Users, and SharePoint list

(1) ShareShare
ReportReport
Posted on by 41

I have a really basic canvas app submitting to a SharePoint list with a couple of people picker fields. While testing, I was manually setting these fields and they worked fine. Before I published the app, I added a default in one of the fields to be a user's manager using Office365Users.Manager(User().Email)  from Office 365 users in the default property of the combo box. The field populates when the form loads, but it's won't submit to the SharePoint person column. I'm pretty new at this, what am I missing?


 

 

 

 

Categories:
I have the same question (0)
  • kritique Profile Picture
    16 on at

    Is the sharepoint list listed in your apps data sources?

     

  • Jscrog Profile Picture
    41 on at

    Yes it is. My data sources are the SharePoint list, and Office 365 Users. 

  • kritique Profile Picture
    16 on at

    Ensure that the DataSource Field for the form is set to the sharepoint list as well as ensure the OnSelect field for whatever you use to submit uses the SubmitForm function

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Jscrog 

    SharePoint user records are different than Office365 user records.

    If you are trying to set the default of a combobox (which actually does nothing on a combobox - you need DefaultSelectedItems) based on a Person column, then you need to convert to the appropriate record.

    I am assuming that your Combobox has an Items property based on your person column - something like : Choices([@yourDataSource].personColumnName)

    If so, then you need to set the DefaultSelectedItems property to the following:

     

    Coalesce(
     Parent.Default,
     With({_user365: Office365Users.ManagerV2(User().Email)},
     { 
     Claims:"i:0#.f|membership|" & Lower(_user365.mail), 
     Department:"", 
     DisplayName: _user365.displayName, 
     Email: _suer365.mail, 
     JobTitle:".", 
     Picture:"."
     }
     )
    )

     

     

    This will set the default properly based on the Items property.

    It will also set the selected person to be the default of the record (the underlying value) for when you are editing a record.  If there is NO underlying value (new record), then it will set it to the manager from 365.

     

    I hope this is helpful for you. 

  • Jscrog Profile Picture
    41 on at

    Thank you so much Randy, that was it. I had driven myself a little insane trying to find the answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard