Well every week I am writing one blog for the numerous people who are reaching out to me and asking to put down blogs with some basic info consolidated in a place. If you are new to Dynamics 365, docs can be overwhelming. So here is a quick summary of all the important user properties, you can play with using Xrm Client API’s.
// Get user settings object
var userSettings = Xrm.Utility.getGlobalContext().userSettings
// get dateformatting option for the user. You can get all details of date formatting for the user using this property.
userSettings.dateFormattingInfo
// Get default Dashboard id of the user.
userSettings.defaultDasboardId
// Get user language id
userSettings.languageId
// Get security roles of user with names and id
userSettings.roles. Don’t use the userSettings.securityRoles which is deprecated
// Userid
userSettings.userId
// username
userSettings.userName
Hope this helps!
Debajit Dutta
(Business Applications MVP)
For training and consulting, please reach out to info@xrmforyou.com
Discover more from Debajit's Power Apps & Dynamics 365 Blog
Subscribe to get the latest posts sent to your email.