Newer Version Available
FormulaFunction
Represents a function used when building a formula, including
examples and uses. This object is available in Tooling API version 39.0 and
later.
Supported SOAP Calls
describeSObjects(), query()
Supported REST HTTP Methods
GET
Special Access Rules
In API version 45.0 and later, only users with the ViewSetup and Configuration permission can access FormulaFunction or FormulaFunctionCategory.
Fields
| Field | Details |
|---|---|
| Category |
|
| CategoryId |
|
| Description |
|
| DurableId |
|
| ExampleString |
|
| IsAllowedInEntityContext |
|
| IsAllowedInFlowContext |
|
| IsAllowedInVisualforceContext |
|
| Label |
|
| Name |
|
| Types |
|
FormulaFunctionCategory
| Field Name | Details |
|---|---|
| DurableId |
|
| Functions |
|
| Label |
|
| Name |
|
Query Examples
To get all the functions in FormulaFunction using
REST:
1req.setEndpoint('http://instance.salesforce.com/services/data/v59.0/tooling/query?q=SELECT+label+FROM+FormulaFunction );
2req.setMethod('GET');To get the DurableID of a function category using
SOQL:
1SELECT DurableID FROM FormulaFunctionCategoryTo get all the categories and their functions using
SOQL:
1SELECT Name, Label, (SELECT Name, Label, Description, ExampleString FROM Functions) FROM FormulaFunctionCategory