Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Getting country code from Phone

(0) ShareShare
ReportReport
Posted on by 32

Hi,

Is there a way where I can get the country code in power automated via the first 4 digits of a phone number? For example, I have a http trigger that receives data and processes it through a PA flow, one part of this data is the phone number of the user which I truncate to the first 4 digits like +353, I am wondering is there a way to automatically map or assign a country code (IE in this case) to this phone number, we could have +1, +353, +44 or others like +351 and +355.

 

Thanks

  • v-xiaochen-msft Profile Picture
    on at
    Re: Getting country code from Phone

    Hi @Kaptea ,

     

    There is no such out-of-the-box functionality.

    I think you can only achieve it by hard-coding (@VictorIvanidze 's suggestion) or third-party api.

     

    Best Regards,

    Wearsky

  • Kaptea Profile Picture
    32 on at
    Re: Getting country code from Phone

    Hi @VictorIvanidze can you expand on that, new enough to power automate so would appreciate any detail you can add.

  • VictorIvanidze Profile Picture
    12,536 on at
    Re: Getting country code from Phone

    Create a 2-dimensional array and use it.

    +1 US

    +44 GB

    etc

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1