Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Region and Language settings

(1) ShareShare
ReportReport
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 74,036 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans