---
schema_version: "1"
id: cd2abb78f36d09616af76201f15c93afd63a7d9446ead9601ed5061adb1ce490
title: BriefcaseRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_briefcaserule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_briefcaserule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 024efd07a8420455bc622387edef46bfc0c5f7f0e4013ef224d3d084091fd06f
description: Represents a rule that specifies records for a briefcase definition. This object is available in API version 50.0 and later.
---
# BriefcaseRule

Represents a rule that specifies records for a briefcase definition. This object is available in API version 50.0 and later.

## Special Access Rules

This object is read-only.

## Supported Calls

describeSObjects(), query(), retrieve()

## Fields

| Field | Details |
| --- | --- |
| BriefcaseId | 
Type

reference

Properties

Filter, Group, Sort

Description

Required. ID of the briefcase definition. Label is **Briefcase Definition ID**.

This field is a relationship field.

Relationship Name

Briefcase

Relationship Type

Lookup

Refers To

BriefcaseDefinition



 |
| FilterLogic | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The filter logic for record selection, for example, 1 AND 2 where 1 and 2 correspond to filter 1 and filter 2. Filter logic operators include AND and OR. Limited to 255 characters. Label is **Filter Logic**.



 |
| IsAscendingOrder | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Required. Indicates whether the records should be sorted in ascending order. Label is **Ascending**.



 |
| OptionsIsRelatedFilesRule | 

Type

boolean

Properties

Filter

Description

Indicates whether the briefcase rule is part of a hierarchical set of rules that configure the offline priming of file attachments. Available only for the Offline App (Salesforce Mobile App Plus).



 |
| OrderBy | 

Type

picklist

Properties

Nillable, Restricted picklist

Description

The field to order the records by, which determines how the records can be sorted. For example, AccountName or CreatedBy. Label is **Order By**.



 |
| ParentRuleId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the parent rule of this briefcase rule. This field is a relationship field.

Relationship Name

ParentRule

Relationship Type

Lookup

Refers To

BriefcaseRule



 |
| QueryScope | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Required. A group of records to restrict the scope of this rule.

Possible values are:

- assignedToMe
- everything
- mine

The default value is everything (All Records). The value assignedToMe is available only for the ServiceAppointment object.



 |
| RecordLimit | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The record limit for the object. The recommended number for record limit is up to 500 records per object for optimal performance. The maximum number is 2000. Label is **Limit**.



 |
| RelationshipField | 

Type

picklist

Properties

Nillable, Restricted picklist

Description

The Salesforce object field that relates the briefcase rule to another briefcase rule. For example, an Account rule can be related to a Contact rule using the Account ID object field. In this example, the value for the briefcase rule's RelationshipField is AccountID.



 |
| RelationshipType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The relationship of the briefcase rule to another briefcase rule. Possible values are:

- ParentToChild
- ChildToParent





 |
| TargetEntity | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The standard object, custom object, or custom metadata type that the briefcase rule selects records from. The UI label is **Target Object**.



 |