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 / Office365user Myprofil...
Power Apps
Answered

Office365user Myprofile V2

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

Hi

 

Am having a strange one with an existing app.   I create the following variable on startup

 

Set(
VarMyProfile,
Office365Users.MyProfileV2()
);

 

So then whenever I want to pull an email address or photo etc.. I use  VarMyProfile.mail  etc..  been working that way for months..

 

However it seems to have stopped working? and I'm getting errors where photos used to be and blank where email addresses and displaynames used to be...  To test I just put in a blank label.  If I put the text of the label as VarMyProfile.mail  it's blank (usually shows email fine)  if I go direct without the variable and put 

 

Office365Users.MyProfileV2().mail

 

it works fine and shows the email address.   I've tried removing the office 365 connector and putting it back, I've tried logging out completely etc.. seems very odd?   has anyone had this happen to them?  It could be just a blip and might start working tomorrow !! but just thought I'd check in case anyone else has had this issue before and there was a solution? 

Categories:
I have the same question (0)
  • Verified answer
    vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    found the issue. I'm just stupid LOL.    The issue had  nothing to do with office 365 connector it was to do with other formulas in the "onstart" which were preventing the my profile variable from being created so obviously it didn't know what to do.. 🙂

  • Pstork1 Profile Picture
    69,117 Most Valuable Professional on at

    Microsoft has been tightening up loading variables using connectors in the OnStart property over the last 6 months.  That is probably why it doesn't work anymore.  Try moving it to the OnVisible property of the first screen you load and see if it doesn't work better.

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 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard