BriefcaseDefinition
Represents a briefcase definition. A briefcase makes selected records available for specific users and groups to view when they’re offline in the Salesforce Field Service mobile app for iOS and Android.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
BriefcaseDefinition components have the suffix .briefcaseDefinition and are stored in the briefcaseDefinitions folder.
Introduced in API version 50.0.
- Type: BriefcaseRule[]
- Required: No
- Description: A list of rules that specify which records are included in the briefcase.
- Type: string
- Required: No
- Description: Description of the briefcase.
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether the briefcase is active by default (
true) or inactive (false). Activate a briefcase to make the selected records available to assignees.
- Type: string
- Required: Yes
- Description: Required. Label for the briefcase name that appears in the Salesforce user interface.
- Type: BriefcaseType (enumeration of type string)
- Required: No
- Description: Applies if multiple briefcase types are available in your org. Valid values include:
- Possible values:
- Standard — Standard briefcase that can be used with priming APIs.
- HighVolume — Increased capacity briefcase that’s used with performance priming in the Salesforce Field Service mobile app.
- MobileAppSync — Automatically generated briefcase that’s used for performance priming in the Salesforce Field Service mobile app.
Represents a rule that specifies records to be included in the BriefcaseDefinition.
- Type: BriefcaseRuleFilter[]
- Required: No
- Description: A list of filters on a rule.
- Type: string
- Required: No
- Description: The filter logic for record selection, for example,
1 AND 2where 1 and 2 correspond to filter 1 and filter 2. Filter logic operators includeANDandOR.
- Type: boolean
- Required: No
- Description: Indicates whether the records should be sorted in ascending order (
true) or descending order (false).
-
Type: boolean
-
Required: No
-
Version: Removed in API version 63.0 and later.
-
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).
To configure the offline priming of file attachments, create a set of four hierarchical briefcase rules:
- A rule with
targetEntityset to the object with the file attachments at the first level - A rule with
targetEntityset toContentDocumentLinkat the second level - A rule with
targetEntityset toContentDocumentat the third level - A rule with
targetEntityset toContentVersionat the fourth level
See the Declarative Metadata Sample Definition section for an example briefcase definition that configures the offline priming of file attachments.
The
ContentDocumentLink,ContentDocument, andContentVersionrules must all haveisRelatedFilesRuleset totrue. To delete a briefcase configuration for file attachments, you must delete theContentDocumentLinkrule and all of its nested rules. You can’t delete a single rule within the hierarchy ofContentDocumentLink,ContentDocument, andContentVersionrules.When
isRelatedFilesRuleis set to true, you must use therecordLimitfield to limit the number of file attachments returned by a briefcase rule. Apply the samerecordLimitvalue across theContentDocumentLink,ContentDocument, andContentVersionrules. You can optionally filter file attachments by file size and file type through Briefcase Builder in Setup.After you set a value for
isRelatedFilesRule, you can no longer modify the field. The value that you set persists for the life of the rule. - A rule with
- Type: string
- Required: No
- Description: The field to order the records by, which determines how the records can be sorted. For example, Account Name or Created By.
-
Required: No
-
Description: A group of records to restrict the scope of this rule. Valid values include:
The
AssignedToMescope is supported for the ServiceAppointment object only. -
Possible values:
- Everything
- AssignedToMe
- Mine
- Type: int
- Required: No
- Description: The maximum number of records for an object on the briefcase rule. The maximum is 50,000 records that meet the criteria. However, the records returned by one briefcase rule must fit within the maximum limit of 50,000 records across active briefcases. If there are more records that match the criteria than the record limit allows, the
orderByfield determines which records are returned.
- Type: BriefcaseRule[]
- Required: No
- Description: A list of rules that are related to the current rule.
- Type: string
- Required: No
- Description: Required for
relatedRules. Defines the Salesforce object field that relates therelatedRulesfield to anotherrelatedRulesfield or thebriefcaseRulesfield on the BriefcaseDefinition metadata type that it’s nested in. For example, an Account object rule can be related to a Contact object rule using the Account ID object field. In this example, the value for the related rule’srelationshipFieldisAccountID.
- Type: BriefcaseRuleRelationshipType (enumeration of type string)
- Required: No
- Description: Required for
relatedRules. Defines the relationship between therelatedRulesfield and anotherrelatedRulesfield or thebriefcaseRulesfield on the BriefcaseDefinition metadata type that it’s nested in. Valid values include: - Possible values:
- ParentToChild
- ChildToParent
-
Type: string
-
Required: Yes
-
Description: Required. The API name of the standard object, custom object, or custom metadata type that the briefcase rule selects records from.
If the
targetEntityis a custom metadata type, the briefcase rule can’t include any other fields. You can add only one briefcase rule for the same custom metadata type in a briefcase. Custom metadata types are supported as thetargetEntityfor top-level rules only–you can’t create a related rule withtargetEntityas a custom metadata type.
Specifies filter criteria for a BriefcaseRule.
-
Type: BriefcaseFilterOperator (enumeration of type string)
-
Required: Yes
-
Description: Required. The comparison operator for this rule filter. Capitalization matters with date filter operators. Be sure to specify date literals in uppercase. Some valid date literals include TODAY, YESTERDAY and TOMORROW.
Valid values include:
-
Possible values:
- d — Ends with
- e — Equals
- g — Greater than
- h — Greater than or equal
- l — Less than
- m — Less than or equal
- n — Not equals. This value is applicable only when
filterValueis empty. - s — Starts with
- Type: int
- Required: Yes
- Description: Required. The filter number. When you apply multiple filters, the filters are numbered sequentially, 1, 2, 3, and so on.
-
Type: string
-
Required: No
-
Description: The value that the field and criteria evaluate. For example,
trueorfalsefor a boolean field whose criteria or filter operator is Equals.Be sure to specify date literals in uppercase. Some valid date literals include TODAY, YESTERDAY and TOMORROW.
For
targetEntityFieldvalues that accept a user ID, such asOwnerIdorCreatedById, enter$User.Idto pass the ID of the user making the request.To evaluate
targetEntityFieldby whether the field is empty or not empty, leavefilterValueblank and setfilterOperatortoe(equals) orn(not equals).
- Type: string
- Required: Yes
- Description: Required. The API name of the field to filter by. This field is from the
targetEntityon BriefcaseRule. Compound fields aren’t supported. Fields encrypted with deterministic encryption can be used in filters with equals and not equals operators.
The following is an example of a BriefcaseDefinition component for account records.
The following is an example definition of a briefcase definition. If you include a rule filter, you must include a filter logic.
The following is an example package.xml that references the previous definition.
This example briefcase definition configures the offline priming of file attachments for the WorkOrder object. Files Priming is available only for the Offline App (Salesforce Mobile App Plus).
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.
Briefcase objects are available in orgs that have Briefcase Builder and Field Service enabled.