Method to read Text File from static resource.
public String textFromSomeUniqueName { get { StaticResource sr = [ select Body from StaticResource where Name = 'SomeUniqueName' ]; return sr.Body.toString(); } }
An effort to bring a revolution in Salesforce.
public String textFromSomeUniqueName { get { StaticResource sr = [ select Body from StaticResource where Name = 'SomeUniqueName' ]; return sr.Body.toString(); } }
© Salesforce 2016 . Distributed by Blogger Template . Created by Weblogtemplates
No comments:
Post a Comment