private Entity
GetUserTimeZone(IOrganizationService
service, Guid userId)
{
try
{
RetrieveUserSettingsSystemUserRequest
request = new RetrieveUserSettingsSystemUserRequest();
request.ColumnSet = new ColumnSet("timezonecode");
request.EntityId = userId;
RetrieveUserSettingsSystemUserResponse
response = (RetrieveUserSettingsSystemUserResponse)service.Execute(request);
return response.Entity;
}
catch (FaultException<OrganizationServiceFault>)
{
throw;
}
catch (Exception)
{
throw;
}
}
No comments:
Post a Comment