Retrieve User Settings such as Time Zone code or Localize Id in MSCRM 2011


You may need connected user settings or any user that you have ID.

Please follow below;

 var currentUserSettings = _serviceProxy.RetrieveMultiple(
                new QueryExpression(UserSettings.EntityLogicalName)
                    ColumnSet = new ColumnSet("localeid", "timezonecode"),
                    Criteria = new FilterExpression
                        Conditions =
                            new ConditionExpression("systemuserid", ConditionOperator.Equal,UserID)

currentUserSettings.TimeZoneCode.Value; //get TimeZoneCode

good luck,


Popular posts from this blog

Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. Dynamics CRM 365 Engine version 9 - CRM User creation error

Exception caught instantiating TERADATA report server extension SQL Reporting Services

Could not load file or assembly 'System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified at Configuration class initiation in