You need to sign in to do that
Don't have an account?
Jose Zuniga
Assigning a value to usr.TimeZoneSidKey
Usr is User data type. I tried:
usr.TimeZoneSidKey = '(GMT-06:00) Mountain Daylight Time (America/Denver)';
but I get the next error after trying to insert:
15:19:03:036 FATAL_ERROR System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Time Zone: bad value for restricted picklist field: (GMT-06:00) Mountain Daylight Time (America/Denver): [TimeZoneSidKey]
but '(GMT-06:00) Mountain Daylight Time (America/Denver)' is one of the picklist values for TimeZoneSidKey.
Any help, please?
Thanks
Jose
usr.TimeZoneSidKey = '(GMT-06:00) Mountain Daylight Time (America/Denver)';
but I get the next error after trying to insert:
15:19:03:036 FATAL_ERROR System.DmlException: Insert failed. First exception on row 0; first error: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST, Time Zone: bad value for restricted picklist field: (GMT-06:00) Mountain Daylight Time (America/Denver): [TimeZoneSidKey]
but '(GMT-06:00) Mountain Daylight Time (America/Denver)' is one of the picklist values for TimeZoneSidKey.
Any help, please?
Thanks
Jose
Check this link for the possible values for the TimeZoneSidKey field - http://www.salesforceben.com/list-timezonesidkey-salesforce/
usr.TimeZoneSidKey = 'America/Denver'
All Answers
Check this link for the possible values for the TimeZoneSidKey field - http://www.salesforceben.com/list-timezonesidkey-salesforce/
usr.TimeZoneSidKey = 'America/Denver'