cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Convert country to ISO

Is there a way I can get someones ISO code from their email? I want the default of one of my searches to be by the persons ISO country code. If I use Office365Users.UserProfileV2(User().Email).country it will give the entire name. Is there a way I can convert this to ISO?

3 REPLIES 3
Drrickryp
Super User
Super User

Hi @powerapps890 

You can download the Excel file from https://datahub.io/core/country-list , convert it to a table and connect it to your app with the Excel static connector.  Then you can use a lookup() to that table. 

Lookup(Table1,Name=Office365Users.UserProfileV2(User().Email).country,Code)

 

It says the function lookup has invalid arguments

It just says false

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,918)