---
schema_version: "1"
id: b7ca6118e131ac97b1216dcd7b7599119cd137a768bbd97502672a1cd93a68ad
title: FormulaFunction
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_formulafunction.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_formulafunction.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 00ee47a327113eab3c0d0835e6b7f773750468f1f3c1c97351b779bf586b50df
description: Represents a function used when building a formula, including examples and uses. This object is available in API version 47.0 and later.
---
# FormulaFunction

Represents a function used when building a formula, including examples and uses. This object is available in API version 47.0 and later.

## Supported Calls

describeSObjects(), query()

## Fields

| Field | Details |
| --- | --- |
| CategoryId | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The ID of the FormulaFunctionCategory.

This is a relationship field.

Relationship Name

Category

Relationship Type

Lookup

Refers To

FormulaFunctionCategory



 |
| Description | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Description of the formula function.



 |
| DurableId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. To simplify queries, use this field.



 |
| ExampleString | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Describes the function and what arguments you can use with it.



 |
| IsAllowedInEntityContext | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether you can use the formula function on an Entity (true) or not (false). For example, you cannot use the PRIORVALUE function in a custom Account formula field. The default value is false. This field is removed in API version 48.0 and later. Use the [FormulaFunctionAllowedType](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_formulafunctionallowedtype.htm "Represents the functions that are supported in the given formula context. This object is available in API version 48.0 and later.") object instead.



 |
| IsAllowedInFlowContext | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the formula function is allowed in a Flow (true) or not (false). The default value is false. This field is removed in API version 48.0 and later. Use the [FormulaFunctionAllowedType](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_formulafunctionallowedtype.htm "Represents the functions that are supported in the given formula context. This object is available in API version 48.0 and later.") object instead.



 |
| IsAllowedInVisualforceContext | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the formula function is allowed in Visualforce (true) or not (false). The default value is false. This field is removed in API version 48.0 and later. Use the [FormulaFunctionAllowedType](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_formulafunctionallowedtype.htm "Represents the functions that are supported in the given formula context. This object is available in API version 48.0 and later.") object instead.



 |
| Label | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The formula function label that appears in the user interface.



 |
| Name | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The name of the formula function.



 |

## Usage

Query FormulaFunction to search for available formula functions, such as AND(), ISBLANK(), MAX(), MIN(), and others.