function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
csbaacsbaa 

ToLabel(FiledAPI)

Hello Helpers

I  have  a before update trigger  (on account)  where I am accessing some picklist  fields
I would like  to get the translated value  of  the picklist  file  in the trigger.new[i]

I  know  how  to  get it for an existent  record  in a SQOL  (Select toLabel(Field_API_Name)  from Account)  
this gets  me the trigger.old  value
There is anything similar  to  get the transalted version of  the value in the trigger.new[0].Myfield..?

Regards
Csbaa 
Best Answer chosen by csbaa
BalajiRanganathanBalajiRanganathan
you can try describe methods (getLabel() on Schema.PicklistEntry)

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Schema_PicklistEntry.htm#apex_class_Schema_PicklistEntry