Category Archives: field

Determine if field is a component of a compound field

Sometimes there is a need to determine if a field is a component of a compound field. For example, compound fields components are not permissionable even though field describe isPermissionable method for them returns true. There might be other cases … Continue reading

Posted in apex, field, SOQL | Leave a comment

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

Salesforce: Querying Tooling API

Recently I have found interesting question about FieldDefinition Metadata field on SSE. Some person was trying to query for it in usual apex. Salesforce documentation and behavior might be misleading, since they have removed some old good documentation and there … Continue reading

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

Salesforce Apex Code to identify formula fields containing hyperlinks

This is Salesforce Apex Code to identify formula fields containing hyperlinks String s = ”; String x = ”; Map<String, Schema.SObjectType> globalMap = Schema.getGlobalDescribe(); for ( String key: globalMap.keySet() ) { Map<String, Schema.SObjectField> fieldsMap = globalMap.get( key ).getDescribe().fields.getMap(); for ( … Continue reading

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

The simplest way to get custom field id dynamically in Lightning

I have a lightning component where I need to display link to related list of children relationship record for given custom object record. Since I developed this application on sandbox, I can’t hardcode this link since it will change after … Continue reading

Posted in custom, field, salesforce, Uncategorized | Tagged , , , , , | Leave a comment

To make Audit Fields editable you don’t have to open a Salesforce Ticket now

To make Audit Fields editable you don’t have to open a Salesforce Ticket now: https://help.salesforce.com/apex/HTViewSolution?urlname=How-to-specify-the-values-in-Created-By-Created-Date-Last-Modified-By-ID-Last-Modified-Date&language=en_US You can access it by following https://login.salesforce.com/ui/setup/org/UserInterfaceUI?setupid=UserInterface on production or developer orgs and by https://test.salesforce.com/ui/setup/org/UserInterfaceUI?setupid=UserInterface on sandboxes.

Posted in field, standard | Tagged , , , , , , | Leave a comment