---
schema_version: "1"
id: ab481954004b33df2fd9c31b49f275c43e5c2f26e0b1ce2cf5644eed367e9a22
title: ApptBundleRestrictPolicy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_apptbundlerestrictpolicy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_apptbundlerestrictpolicy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: de89e6c588741694fc117abefb40d8bf85898af78e455ea7ce7b9e84ebbbd558
description: Policy that defines the restrictions that are considered while forming a bundle. This object is available in API version 54.0 and later.
---
# ApptBundleRestrictPolicy

Policy that defines the restrictions that are considered while forming a bundle. This object is available in API version 54.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Special Access Rules

- Field Service must be enabled.
- Bundling must be enabled in the Field Service Settings.
- The Field Service Admin, Field Service Bundle for Dispatcher, and Field Service Integration permission sets must be enabled.

## Fields

| Field | Details |
| --- | --- |
| BundlePolicyId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the parent bundle policy.

This is a relationship field.

Relationship Name

BundlePolicy

Relationship Type

Lookup

Refers To

ApptBundlePolicy



 |
| DoesAllowEmpty | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Allows a bundle member service appointment with an empty Restriction Field Name to be bundled.



 |
| DoesRestrictAutomaticMode | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates if you want to apply this restriction when using the automatic mode.



 |
| DoesRestrictManualMode | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates if you want to apply this restriction when using the manual mode.



 |
| IsRestrictByDateOnly | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates if you want the bundle to be restricted according to the calendar date only, ignoring the time of day.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record, a record related to this record, or a list view.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the appointment bundle restriction policy.



 |
| RestrictionFieldName | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Name of the field in the service appointment used for applying the restriction.

Possible values are: All default and custom Service Appointment fields.



 |