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 Pages / Set Preferred Language...
Power Pages
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:
I have the same question (0)
  • domliu37 Profile Picture
    314 Super User 2024 Season 1 on at

    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

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    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.

     

     

  • Robby Profile Picture
    30 on at

    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.

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 Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard