Skip to main content

Notifications

Business Central forum
Suggested answer

Region and Language settings

Posted on by 40
 
Is there a way to change Company, Time Zone, Region, and Language settings for all users in one go without doing the manual way of My Setting option in Business Central.
 
 
 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,471 Super User 2024 Season 2 on at
    Region and Language settings
    Hi, if you don't want to customize it, you can modify My Settings for all users in User Settings.
    If you want to customize it, please refer to the following steps.
    Dynamics 365 Business Central: How to bulk edit user roles/profiles (Customization)
     
    Thanks.
    ZHU
  • Suggested answer
    Sami Ullah Profile Picture
    Sami Ullah 284 on at
    Region and Language settings
    Hi,

    In Business Central, you can't directly change settings like Company, Time Zone, Region, and Language for all users at once through the UI. Each user has to do it manually through the "My Settings" option. However, you can handle this programmatically.

    Example:
        var
            UserPersonalization: Record "User Personalization";
            Users: Record "User";
        begin
    
            if Users.FindSet() then
                repeat
                    if UserPersonalization.Get(Users."User Security ID") then begin
                        UserPersonalization."Company" := 'My Company';
                        UserPersonalization."Locale ID" := 16393;
                        UserPersonalization."Language ID" := 16393;
                        UserPersonalization."Time Zone" := 'Pakistan Standard Time';
                        UserPersonalization.Modify();
                    end else begin
                        UserPersonalization.Init();
                        UserPersonalization."User SID" := Users."User Security ID";
                        UserPersonalization."Company" := 'My Company';
                        UserPersonalization."Locale ID" := 16393;
                        UserPersonalization."Language ID" := 16393;
                        UserPersonalization."Time Zone" := 'Pakistan Standard Time';
                        UserPersonalization.Insert();
                    end;
                until Users.Next() = 0;
        end;

     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans