DigitalLendingUtils Methods
getFieldIsReadOnlyMap(entityName, fieldNames)
IndustriesSettings
Industries Object Access by Community License
Access Industries Features Deployed Using Managed Packages
Previous Versions
getFieldIsReadOnlyMap(entityName, fieldNames)Accepts an entity’s name and a list of its fields as input, and returns a value indicating whether the fields are read-only.
public Map<String, Boolean> getFieldIsReadOnlyMap(String entityName, Set<String> fieldNames)
Type: String
Name of the entity to retrieve field information for.
Type: String
List of field names to determine if they are read-only.
Type:Map<String, Boolean>
Returns the fields that are read only.
Create a set of field names to identify the Field Level Security (FLS) for, and pass this set as an argument to the method, along with the name of the entity to which the fields belong.
1Set<String> applicantFieldsForFLS = new Set<String> {'birthdate', 'email', 'phone', 'firstname', 'lastname'};
2Map<String, Boolean> flsInfo = DigitalLendingUtils.getFieldIsReadOnlyMap('Applicant', applicantFieldsForFLS);