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 / Can not save default v...
Power Apps
Unanswered

Can not save default value to the field of Person or Group to Sharepoint online list

(0) ShareShare
ReportReport
Posted on by 155

Hi,

 

I creted a Edit form and one field with Person or Group format, and add Office365Users as a datasource, then setup default = Office365Users.Manager(User().Email), it is working, however I got error message whille clicking the submit buttong. It says 

The requested operation is invalid. Server Response: A value must be provided for item.

but if I manually enter a name, it will be good to submit. can anyone give some ideas? thanks.

approver.jpg

 

approver1.jpg

 

Regards

Steven 

Categories:
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    This is how I am setting the dafault value for my manager field. when the form is new it looks up the user's manager otherwise it uses the value that was in the field.

     

    If(SharePointForm1.Mode = New, {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims:Concatenate("i:0#.f|membership|",Office365Users.Manager(User().Email).Mail),
    DisplayName:Office365Users.Manager(User().Email).DisplayName,
    Email:Office365Users.Manager(User().Email).Mail
    }, Parent.Default)

  • StevenZhang Profile Picture
    155 on at

    Hi,

     

    Please see my settings about default, I am using Office365Users.Manager() or something like that. 

     

    Regards

    Steven

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    The formula I provided find the manager for the logged in user and defaults the manger into the field if the form is in new mode because in my case the only time default values should be set is when the item is new.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard