web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / using json for mapping
Power Automate
Suggested Answer

using json for mapping

(0) ShareShare
ReportReport
Posted on by 5
i have a list of country codes and a json object for mapping and i want to loop through the country codes list and check if the country code in the list is in the mapping object keys then i want to change it to the corresponding value, and if not then keep it as it is, and then get the modified list.
here is the mapping object:
{
    "GB": "EN",
    "IE": "EN",
    "NI": "EN",
    "GR": "EL",
    "DK": "DA",
    "RS": "SR",
    "SI": "SL",
    "CZ": "CS",
    "SE": "SV",
    "AT": "DE",
    "CH": "CH_DE_FR_IT",
    "CY": "CY_EN_EL",
    "BE": "BE_FR_NL",
    "OS": "OS-DE_EN_FR_NL_PL_CS_SK_ES_DA_IT_HU",
    "US": "US_AE_AS"
  }
 and here is an example list to be mapped: [GB, OS, EN, XX, AB, CH, AL, AU, DE, DA]
 
i have tried parse json action but it didn't work (i don't know if i have done something wrong)
thanks for help
Categories:
  • Suggested answer
    Ellis Karim Profile Picture
    12,329 Super User 2026 Season 2 on at

    Try using the Select action in Map mode:
     
     
     
    coalesce(variables('varMap')?[item()], item())
     
     
    Ellis Karim
     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard