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.
Thank you.
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.
Hi @devost
This is a bit challenging with the OOTB "Registration claims mapping"
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
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.
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
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43