EmbeddedServiceFieldService defines the setup node for an embedded Appointment Management deployment. It connects an Embedded Service configuration to appointment booking, modification, and cancellation flows, and controls which appointment buttons appear on the customer-facing home screen.
This component is separate from both the associated EmbeddedServiceConfig and the Flow components that perform appointment operations. Its flow-name fields select those flows; they do not contain the flow definitions.
Key Elements
| Element | What the Element Controls |
|---|---|
embeddedServiceConfig |
Required. Names the associated EmbeddedServiceConfig node. |
enabled |
Required. Indicates whether the embedded Appointment Management deployment is enabled. Accepts true or false; it does not independently control either home-screen button. |
appointmentBookingFlowName |
Names the Flow used to book an appointment. |
modifyApptBookingFlowName |
Names the Flow used to modify an appointment. |
cancelApptBookingFlowName |
Names the Flow used to cancel an appointment. |
shouldShowNewAppointment |
Displays the home-screen button for creating a new appointment when true. Defaults to false. |
shouldShowExistingAppointment |
Displays the home-screen button for accessing existing appointments when true. Defaults to false. |
fieldServiceConfirmCardImg, fieldServiceHomeImg, fieldServiceLogoImg
|
Hold image URLs for the confirmation card, home screen, and home-screen logo, respectively. Changes to these fields override values entered in Setup. |
Behavior and Constraints
Deployment enablement and button visibility are separate settings. Setting enabled to true does not make either appointment button appear. Both visibility flags default to false, so an enabled deployment can have neither button displayed. When a button is missing, check its corresponding visibility flag as well as enabled.
Booking, modification, and cancellation each have their own flow reference. Changing a flow-name field changes which Flow is designated for that operation. Changing the referenced Flow itself is relevant to the corresponding operation without changing the reference in this component.
Deployment and Retrieval
Components are stored in the EmbeddedServiceFieldService folder with the filename developer_name.EmbeddedServiceFieldService. The type extends Metadata and inherits its fullName field. In addition to the required embeddedServiceConfig and enabled fields, masterLabel is required and supplies the deployment's name.
The component stores names of the associated configuration and appointment flows, not their definitions. Treat changes to the appointment flows separately from changes that select which flows this component uses.
Deploying changed image URLs can replace image choices maintained in Setup. This applies to fieldServiceConfirmCardImg, fieldServiceHomeImg, and fieldServiceLogoImg. Salesforce recommends setting these image URLs in Setup. When deploying this component over an environment where administrators maintain the images, account for any changed URL values in the deployment.
Relationships
The configuration reference connects this setup node to its Embedded Service configuration. Three separate flow references connect appointment operations to their implementations.
References
-
EmbeddedServiceConfig:embeddedServiceConfig. -
Flow:appointmentBookingFlowName,modifyApptBookingFlowName,cancelApptBookingFlowName.
Reported Issues
- Direct Apex queries were reported as unavailable for
EmbeddedServiceFieldService. A 2021 community answer listed it among Tooling API objects that were not available in the ApexSchemanamespace and could not be queried in Apex. See the discussion of Tooling API objects queryable in Apex.
Common Questions
Why are appointment buttons missing even though the deployment is enabled?
enabled does not control button visibility. Set shouldShowNewAppointment to true for the new-appointment button and shouldShowExistingAppointment to true for the existing-appointments button. Both default to false.
Which fields select the booking, modification, and cancellation flows?
Use appointmentBookingFlowName, modifyApptBookingFlowName, and cancelApptBookingFlowName, respectively. Each names a separate Flow component rather than containing its definition.
Can a metadata deployment overwrite appointment images configured in Setup?
Yes. Changes to fieldServiceConfirmCardImg, fieldServiceHomeImg, or fieldServiceLogoImg override values entered in Setup. Salesforce recommends maintaining these image URLs in Setup.
Where is an EmbeddedServiceFieldService component stored?
It is stored in the EmbeddedServiceFieldService folder as developer_name.EmbeddedServiceFieldService.