Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Set Preferred Language Based on Country when Register with Azure B2C

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

 

Is it possible to set the Preferred Language based on the Country user input when register with Azure B2C? For example, if user select France when register, then the Preferred Language will automatically filled by French when user first login.

 

1.png

 

Thank you.

Categories:
  • Robby Profile Picture
    30 on at
    Re: Set Preferred Language Based on Country when Register with Azure B2C

    Thank you @ragavanrajan and @domliu for your ideas. I already can archive that with creating new column in Contact table and store the Country Code from B2C there, then I use the Power Automate flows to update the Preferred Language based on the Country Code in Contact table.

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Set Preferred Language Based on Country when Register with Azure B2C

    Hi @devost 

     

    This is a bit challenging with the OOTB "Registration claims mapping" 

     

    ragavanrajan_0-1697109701960.png

    The contact table has a column called "Preferred language". Unfortunately, this is a lookup, so the chances of B2C claims mapping is low. 

     

    If you are using an enhanced data model, then there is a possibility 

    ragavanrajan_1-1697109819511.png

    The simple way I can think of is to trigger a Power Automate or workflow. 

     

    High-level idea

    1. HTTP request received > Azure AD B2C > capture the Country input with the help of API Connectors 

    2. Update the dataverse > Contact table > preferred language column 

     

    Probably fun and challenging time ahead. 

     

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

  • domliu37 Profile Picture
    314 Super User 2024 Season 1 on at
    Re: Set Preferred Language Based on Country when Register with Azure B2C

    hi @devost ,

     

    First enable multiple-language website support: https://learn.microsoft.com/en-us/power-pages/configure/enable-multiple-language-support

     

    Then after user logged in, i would append the query string based on the country they selected, based on the url on the home screen, use JS append the site url so its using the correct language.

     

    I dont think there's any ootb ways to achieve this, let me know if you can find a better way.

    ----------------------
    If you enjoy this post, click the thumbs-up button. If it helped you, mark it as a solution so others can find it easily.

    Cheers,
    Dom

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43