Activity › Forums › Salesforce® Discussions › Where and when do we need to use api names in triggers? Tagged: Salesforce Apex, Salesforce APIs, Salesforce Trigger, Salesforce Visualforce Salesforce® Discussions Where and when do we need to use api names in triggers? Posted by Himanshu on April 30, 2016 at 6:16 PM Where and when do we need to use api names in triggers? Surbhi replied 9 years, 11 months ago 2 Members · 1 Reply Salesforce ApexSalesforce APIsSalesforce TriggerSalesforce Visualforce 1 Reply Surbhi Member May 31, 2016 at 5:00 AM Hi Himanshu, We can refer fields and objects via API names rather than labels in apex code. This means the code will not break if the label is changed or translated. So in this case, we always use the API names. Thanks Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me