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;
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,888 Super User 2024 Season 2
Martin Dráb 229,247 Most Valuable Professional
nmaenpaa 101,156