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 / Location codes to Loca...
Power Automate
Answered

Location codes to Location IRL

(0) ShareShare
ReportReport
Posted on by 108

Hello,

 

I have a SharePoint list that tracks employees. 

This list will be added to over its life-cycle.

 

The issue I would like to resolve with flow however is that the 'base office' of employees is as follows: "UKY" for a York office.

 

Can I set up a flow whereby every Monday, it will search the list and change any codes to the actual location?

I have a list of exactly 35 location codes.

 

I assume something using a table may work however I'm not experienced enough to make this work.

 

Regards,

CameronTCD

Categories:
I have the same question (0)
  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at

    @CameronTCD 

    Hey there.  So, you are definitely on the right track with the table.  I'd suggest making a translation table in Excel or something that has the codes and the actual names.

     

    You'll probably want to start with a Recurrence trigger to schedule the run for once a week on Mondays (or whatever you choose).

     

    Follow that with a Get List Items from your SP list.  To shorten the list, you can use an OData filter to only grab items that have a value in that field with a length of 3 (or whatever the length is).  Search for OData, and also check out this article on functions, specifically 'Length' might be the one for you.   It's mostly like working in Excel, so don't worry if you don't like 'code'.

     

    From there, you want to look at each item, right?  So start an Apply to Each loop, and get the corresponding name from your table.  For this, you can use a "Filter Array" to grab the row of your translation table that has the matching code.

     

    After that (and still inside your Apply to Each loop), use the Update Item to update the field to the name instead of the code.

     

    That should get you started.  Give it a go and keep us posted, we're happy to help out along the way.

     

    -Ed-

     

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

  • Verified answer
    CameronTCD Profile Picture
    108 on at

    Hi @edgonzales,

     

    Solution:

    > Recurrence

    > GetItems (List of employees)

    > GetItems2 (AreaCode -> Area SP List)

    > ApplyToEach to update with corresponding IRL location

     

    Thanks you for your help.

     

    Regards,

    CameronTCD

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard