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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Location codes to Loca...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard