cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Unable to pull current users city

Hello,

 

I am trying to pull the current user's city using Office365Users.MyProfile().City but I am just getting a blank result. I am using this in a text field. Any Suggestions?

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Unable to pull current users city

Hi @J0hn ,

I've made a similar test and found that your formula is right.

My lable dislays the right informuation.10231.PNG

So, the most important thing is checking whether you've set your city in your azure ad.

This formula is used to display your profile in azure ad, not your current city.

You could check this here:

https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview

Please enter your emial address here, and then you could view this user's profile.10232.PNG

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Unable to pull current users city

I have checked that my profile is complete in both Office 365 and active directory. But am still getting a blank field. I will submit a case to Microsoft.

Highlighted
Helper II
Helper II

Re: Unable to pull current users city

I have reviewed the information in AD and the city is in the profile. Any other suggestions?

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,257)