Salesforce Fact #617 | Fetching field help text

While trying to fetch the field help text using SOQL on FieldDefinition object, we get the below error:

No such column 'inlinehelptext' on entity 'FieldDefinition'.

So, to get the help text we can use the getDescribe() call in the format:

SobjectApiName.FieldApiName.getDescribe().getInlineHelpText().

For example, Account.AccountSource.getDescribe().getInlineHelpText();


Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow