Notifications
Announcements
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?
Hi @Anonymous
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
I had a similar issue in a HTTP GET providing me ISO3 country code and I needed to pass this to a HTTP PUT endpoint expecting a ISO2 country code. Example "DEU" -> "DE". My Solution:
- Compose element with an json array of all countries [{"ISO3":"DEU", "ISO2":"DE"}, {250 more countries}..]
- Filter this array with your needed country code as a filter criteria
- The filter result is your needed ISO2 country valueAttached my converter flow.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268