Monthly Archives: August 2018

Determine by Apex if Custom Field allows setting Field Level Security

There is FieldDefinition standard object, which is available in usual SOQL and in Tooling API. However, this object has different fields available in different ways of accessing it. It has a field IsFlsEnabled which is only available in Tooling API, … Continue reading

Posted in apex, field, salesforce | Tagged , , , , , , , , | Leave a comment

Efficient dynamic SObjectType retrieval in Salesforce

It is interesting how often we use inefficient code. For example, if we want dynamically get SObjectType for given custom object by its String representation, how do we usually implement it? Have you seen code like following? public static SObjectType … Continue reading

Posted in apex, salesforce | Tagged , , , | Leave a comment