web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How can i do new users with import user date time format is default day/month/year

(0) ShareShare
ReportReport
Posted on by 80

I can do it for the newly created user with the following code, but how can I do it for the imported user?

4135.pastedimage1658742492100v1.png

I have the same question (0)
  • Komi Siabi Profile Picture
    13,208 Most Valuable Professional on at

    Your requirement seems not to be clear to me.

    Please can elaborate what you are trying to achieve?

  • dynamicscon Profile Picture
    80 on at

    My point is that I'm creating a new user with the "new" button in the SysUserInfoPage form. In the code in the image I shared, I automatically create the language, location and time zone of the user created with the "new" button as the same as the admin user. My next goal is to click on the "import users" button in the same form, and I want to perform it for the users selected from Azure Active Directory Users.

  • Verified answer
    dynamicscon Profile Picture
    80 on at

    i solved my problem with the following code:

    [DataEventHandler(tableStr(UserInfo), DataEventType::Inserting)]

      public static void UserInfo_onInserting(Common sender, DataEventArgs e)

      {

          UserInfo userInfo = sender as UserInfo;

          UserInfo adminUser;

          select firstonly PreferredLocale from adminUser where adminUser.id == #AdminUser;

          userInfo.PreferredLocale = adminUser.PreferredLocale;

      }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 669

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 445 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans