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

Announcements

News and Announcements icon
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,299 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard