+ 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