Activity › Forums › Salesforce® Discussions › How to gets the leftmost len characters of a String in Apex? Salesforce® Discussions How to gets the leftmost len characters of a String in Apex? Posted by Anuj on August 28, 2020 at 2:56 PM How to gets the leftmost len characters of a String in Apex? Sumit kumar replied 5 years, 9 months ago 3 Members · 2 Replies 2 Replies Kirandeep Member August 28, 2020 at 3:01 PM Hi Anuj, You can use left() function of String Class . [adinserter block='9'] Sumit kumar Member August 30, 2020 at 4:12 PM You can use left() function of String Class . Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me