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 Apps
Answered

Help with error

(0) ShareShare
ReportReport
Posted on by 61

Hello

 

I'm building an app for my company, everything works however, on load the user gets this error: Office365Users.UserProfileV2 failed: The method 'UserProfileV2' has an invalid value for parameter 'id'

 

Despite trying, I can't get rid of it.

 

I have App OnStart set to: Set(UserEmail, User().Email)

 

Then I'm displaying the users email in a label with this formula: If(!IsBlankOrError(" "), Office365Users.UserProfileV2(UserEmail).displayName)

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @Gofunk1 ,

    I am not sure why the Variable gives that error (bug?), but this works

    If(!IsBlankOrError(" "), Office365Users.UserProfileV2(User().Email).displayName)

     

    Please click Accept as solution 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 giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • nocodecreative.io Profile Picture
    61 on at

    Thank you - this worked 🙂

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard