---
schema_version: "1"
id: 82abd6343050707afd422acf75232d80b42a451d1e76a29b643eb10229f04001
title: UiFormulaRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_uiformularule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_uiformularule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 59cdccd5fbf0d03dfa122ee21427cd88f5935eaa9aecf18c97f6dddaae74ff4e
description: Represents a set of one or more filters that define the conditions under which a component displays on a Lightning page. This object is available in API version 47.0 and later.
---
# UiFormulaRule

Represents a set of one or more filters that define the conditions under which a component displays on a Lightning page. This object is available in API version 47.0 and later.

## Supported Calls

describeSObjects(), query(), retrieve()

## Fields

| Field | Details |
| --- | --- |
| AssociatedElementId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Represents a parent component that UiFormulaRule is associated with, such as PromptVersion.

This is a relationship field.

Relationship Name

AssociatedElement

Relationship Type

Lookup

Refers To

PromptVersion



 |
| BooleanFilter | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Represents the filter logic applied to UiFormulaRule. References the UI formula rule stored by UiFormulaCriterion based on the sortIndex, such as ((1 && 3) || 2).



 |
| DeveloperName | 

Type

string

Properties

Filter, Group, Sort

Description

Represents the API name of the UiFormulaRule.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.















 |
| Formula | 

Type

textarea

Properties

Nillable

Description

Represents the formula source string of UiFormulaRule.



 |
| Language | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Represents the language of the UiFormulaRule.



 |
| MasterLabel | 

Type

string

Properties

Filter, Group, Sort

Description

Required. Represents the label of the UiFormulaRule.



 |
| ParentKeyPrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Represents the three-digit prefix for AssociatedElementId.



 |