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 / Office 365 User not re...
Power Apps
Answered

Office 365 User not returning Mail

(0) ShareShare
ReportReport
Posted on by
Hello,
in a Form I use the office 365 User search instead of the Sharepoint User search because the normal search does not find all users. In the Update Property of the Card I am basically "rebuilding" the user with:

 
{
    Claims: "i:0#.f|membership|" & Lower(PersonInhalt.Selected.Mail),
    Department: "",
    DisplayName: PersonInhalt.Selected.DisplayName,
    Email: PersonInhalt.Selected.Mail,
    JobTitle: "",
    Picture: ""
}
 
PersonInhalt is the Combobox where the user is chosen. However PresonInhalt.Selected.Mail returns a Blank. PresonInhalt.Selected.DisplayName gives me the Name so I get the user but not the Mail. I have tried swapping it with UserPrincipalName but that is also Blank. It worked with Mail last week and I am very sure I did not touch the Form since then.

In the Monitor I get a "Bad Request" with the response:
"The specified user i:0#.f|membership| could not be found.\r\nclientRequestId: [ID]\r\nserviceRequestId: [Other ID]"

Edit: I have added a temporary Label with text "JSON(PersonInhalt.Selected, JSONFormat.IndentFour)"
As far as I understand this shows what Information actually is "known" about the selected user. It only says Departmant, DisplayName and JobTitle
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    Firstly, you might have a read of this blog of mine, which covers the various structures when using a Combo Box with Person fields. Your Update property looks correct if both the Combo Box and Person field are single value.
     
    I suspect the issue is your DefaultSelectedItems, which would be 
    {
       DisplayName: ThisItem.PersonInhalt.DisplayName,
       Mail: ThisItem.PersonInhalt.Email
    }
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • DK-03030714-0 Profile Picture
    on at
    Hi @WarrenBelz,
    this solved the problem I mentioned but I have another problem that is very similar but slightly different. 

    In the same formula I also want to choose the Superior of the selected Person.

    I use the same items formula but a slightly different one for DefaultSelectedItems, I tried just "copying" what you suggested and now I have:
     
    If( Are team and Department still the same aka. has nothing been changed
        TeamField.Selected.Value = ThisItem.Team.Value && DepartmentField.Selected.Value = ThisItem.Department.Value,
        [
            {
                DisplayName: ThisItem.Superior.DisplayName,
                Mail: ThisItem.Superior.Email,
                UserPrincipalName: ThisItem.Superior.Email,
                Claims: "i:0#.f|membership|" & Lower(ThisItem.Superior.Email)
            }
        ],
        // If a specific Team is selected the Person currently being adjusted should be their own superior
        TeamField.Selected.Value = "[One specific Team]",
        [SelectedPerson],
        // Has a team been chosen and does a suggested Superior exist, just a QOL thing
        !IsBlank(TeamField.Selected.Value) && !IsBlank(RecommendedSuperior),
        [RecommendedSuperior],
        []
    )

    SelectedPerson the entry selected as the form is in another screen.

    In the monitor there is a Bad Create Row request with
    "Superior": {
          "Claims": "i:0#.f|membership|",
          "Department": "",
          "DisplayName": "[Superior name]",
          "Email": null,
          "JobTitle": "",
          "Picture": ""
        }

    It only happens when I try to add an entry with the form but not when I try to edit an existing one.
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    Firstly, can you please mark your original question as solved.
     
    I am a bit unclear here on what exactly you are doing - is the that the DefaultSelectedItems code and is the Data Card DataSource the Superior (please confirm it exists, it is a Person Field and that is the correct name). You really only need the Mail and DisplayName in this as the rest Update is construected from them
    If(
       TeamField.Selected.Value = ThisItem.Team.Value && 
       DepartmentField.Selected.Value = ThisItem.Department.Value && 
       !IsBlank(ThisItem.Superior.DisplayName)
       {
          DisplayName: ThisItem.Superior.DisplayName,
          Mail: ThisItem.Superior.Email
       },
       {
          DisplayName: ThisItem.PersonInhalt.DisplayName,
          Mail: ThisItem.PersonInhalt.Email
       }
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • DK-03030714-0 Profile Picture
    on at
    Hi @WarrenBelz,
    sorry for the late reply.  Yes it was about another Datacard, "Superior" is also a person column. After a bit of testing I found it the error only came when the "auto insert" of the Recommended Superior happened. The solution was simply changing it from
     
    [RecommendedSuperior]
     
    to
     
    [{
       DisplayName: RecommendedSuperior.DisplayName,
       Mail: RecommendedSuperior.Email,
    }]

    I don't know if what I mean is still unclear what I meant, but at least it is solved :)
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at
    Glad you got it solved - bear in mind I cannot see your data. What I guessed was correct as far as the structure, but I assumed you wanted a conditional result based on whether the Superior was present.

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
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard