In my application OnStart, I have a global variable being set through the following:
Set(
MyOffice365Profile,
Office365Users.MyProfile()
);
Later in the OnStart, I use
MyOffice365Profile.Mail
This works fine for the majority of users, but for one user they are getting a red error message along at top of the screen with the following message:
Office365Users.MyProfile failed: { "statusCode": 404, "message": "Resource not found" }
I am able to get the user through the Power App using
Office365Users.UserProfileV2("user name").mail
as well as flow.
How do I go about troubleshooting why their User Profile is not loading on start?
Solved! Go to Solution.
In case this comes up for anyone else, here are the steps I took to troubleshoot:
Hi @Cooper01 :
I’m not sure why this user encountered this problem, but you can take the following steps:
1\Give this user editing permissions for this app
2\Let this user open the app in edit mode(in PowerApps create Studio)
3\Run OnStart
4\Open monitor
This may help you find the problem
In addition,If this problem can not be solved. I suggest you use this formula as an alternative:
Set(
MyOffice365Profile,
User()
);
and then use
MyOffice365Profile.Email
to get the current user's email address.
Best Regards,
Bof
In case this comes up for anyone else, here are the steps I took to troubleshoot:
User | Count |
---|---|
256 | |
107 | |
90 | |
51 | |
44 |