You need to sign in to do that
Don't have an account?
Swarna
properties file
I need to access a value from outside the code, say from a .properties file stored as a static resource.
How to read the value from the static resource using Apex code?
How to read the value from the static resource using Apex code?
sfdcfox
There are no filesystem-type features right now (correct me if I am wrong), so you would have to either use a HTTP request to download the file and parse the data (or use the new XmlStream object), or create a custom object and place the configuration data in this custom object (the most usual method, actually). This works because Apex Code can ignore object and sharing access, and access data that ordinarily could not be accessed by the user triggering the code, without exposing that data to the user directly or even indirectly, depending on how the system is designed.