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

Notifications

Announcements

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
    68,717 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard