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 / Power automate cloud ,...
Power Automate
Answered

Power automate cloud , excel and Form Recognizer

(0) ShareShare
ReportReport
Posted on by 10

I am sending some document s to Azure form recognizer and getting the output in JSON.

I am facing some challenges in the process where i get the data and wish to make some changes to the city codes that are stored in excel.

 

Eg:- 

I wish to  get the values as follows

CityLocation Code
SeattleSEA
PortlandPDX
Las VegasLAS
PhoenixPHX
MilwaukeeMKE
MinneapolisMSP
Des MoinesDSM
HoustonHOU
JacksonvilleJAX
Baton RougeBTR
MemphisMEM

 

Unfortunately my PA skills are not that advanced to solve this.

 

Categories:
  • efialttes Profile Picture
    14,756 on at

    Hi @Ratnesh_Chitko 
    Not sure I understood your challenge. You receive city codes in your input Excel and need  Power Automate to translate them into City Names? I.e. Seattle instead of SEA, Portland instead of PDX, etc.
    THe more information context you provide, the faster you will receive a useful tip
    THanx!
    ====

  • Ratnesh_Chitko Profile Picture
    10 on at

    i get the city names and want to translate them to city codes that are stored in Excel 

    eg:-

    if i get Seattle from the JSON output i want to convert it to SEA 

    if Portland then translate it to PDX and so on

  • efialttes Profile Picture
    14,756 on at

    Hi again!
    Two more questions: 
    First, I guess you are reading your excel table with 'List rows present in a table' action block, right?
    Next, how many Cities you have to deal with? No more than 11 cities, the ones from your screenshot?
    Thanx!
    =====

  • Ratnesh_Chitko Profile Picture
    10 on at

    Hi,

    1) Yes, i am trying to do it with "List rows present in the table" (I am open to other steps also)

    2) Yes i am dealing with 11 cities.

     

  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi again!
    I just built this simple test Excel table for testing purposes:

    efialttes_0-1696005228906.png


    Next I use a SElect action block, and use aWDL expression based on replace() function:
    In my example I am dealing with 2 cities only, but you can nest replace() functions accordingly:

     

     

     

    replace(replace(item()?['City'],'Seattle','SEA'),'Portland','PDX')

     

     

     

     
    My flow design is as follows:

    efialttes_1-1696005733349.png

     


    And the output array provided by 'Select' action block  when executing it is as follows:

     

     

     

    [
     {
     "Customer": "A",
     "City": "SEA"
     },
     {
     "Customer": "B",
     "City": "PDX"
     },
     {
     "Customer": "C",
     "City": "PDX"
     },
     {
     "Customer": "D",
     "City": "SEA"
     }
    ]

     

     

     

    Please note there are also other approaches to solve it, you can for example store City Names + City codes in a second Excel to read it dinamically and replace values by means of an 'Apply to each' + 'Filter array' action blocks combination. The most appropriate one depends on your specific scenario 
    Hope this helps
    ==========

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
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard