cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

Re: Convert country to ISO

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)

 

Highlighted
Post Prodigy
Post Prodigy

Re: Convert country to ISO

It says the function lookup has invalid arguments

Highlighted
Post Prodigy
Post Prodigy

Re: Convert country to ISO

It just says false

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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 (6,903)