CareProviderSearchConfig defines fields that appear in care provider search results through source-to-target field mappings. It identifies the mapped object, the field whose data is copied, and the destination field. It is configuration metadata, not a care provider record, and it does not define the fields used by the mapping.
Key Elements
| Element | What the Element Controls |
|---|---|
mappedObject |
Required. Identifies the mapped object. The exposed enumeration lists HealthcarePractitionerFacility and HealthcareProvider. Salesforce's field table uses different capitalization; see Documentation Inconsistencies. |
sourceField |
The API name of the field whose data is copied to the target object. References CustomField metadata in the source object's context. |
targetField |
The API name of the destination field. References CustomField metadata in the target object's context. |
isActive |
true indicates that the configuration is active; false indicates that it is inactive. |
isProtected |
An auto-generated boolean that currently has no effect on this metadata type's behavior. It is not an access or security control. |
Behavior and Constraints
Read mappedObject, sourceField, and targetField together. Their combination determines the mapping. A field API name alone does not identify the complete dependency: identical field names on different objects can represent distinct field definitions.
masterLabel is a required string. The type also inherits fullName, its metadata component name, from Metadata. Do not confuse the component's identity with the source or destination field name.
Activation and protection are separate concerns. isActive indicates whether the mapping configuration is active. Changing isProtected does not currently change its behavior and must not be treated as a way to secure the configuration or its data.
Deployment and Retrieval
Components use the .careProviderSearchConfig suffix and are stored in the careProviderSearchConfigs folder. A package manifest identifies the component under the CareProviderSearchConfig metadata type.
The documented deployment example includes three separate components:
-
HealthcareProvider.Test1__c, aCustomFieldcomponent. -
CareProviderSearchableField.Test1__c, anotherCustomFieldcomponent. -
Test, theCareProviderSearchConfigcomponent.
In that configuration, both sourceField and targetField contain Test1__c, while mappedObject contains HealthcareProvider. The matching field names do not make the two fields the same component: their object contexts differ.
This example illustrates a mapping between separate field definitions. The configuration does not create those fields. The example does not establish a universal deployment sequence or require every deployment to include both fields.
Relationships
The configuration connects object metadata to source and destination field metadata. Resolve each field reference in its respective object context rather than matching field names alone.
References
-
CustomObject:mappedObject. -
CustomField:sourceField,targetField.
Documentation Inconsistencies
The documented capitalization of mappedObject values is inconsistent. The exposed enumeration lists HealthcarePractitionerFacility and HealthcareProvider. Salesforce's field table instead lists HealthCarePractitionerFacility and HealthCareProvider, while its XML example uses HealthcareProvider.
This difference matters when diagnosing an invalid mappedObject value. Check the exact spelling and capitalization; the different spellings are not established as interchangeable aliases.
Common Questions
Does CareProviderSearchConfig create care provider records or custom fields?
No. It defines a field mapping for care provider search results. It is not a care provider record, and the referenced fields are separate metadata components.
Do I need to deploy both fields with every CareProviderSearchConfig?
The documented example includes separate source and destination CustomField components alongside the configuration. That example does not require every deployment to include both fields or establish a universal deployment order.
Does isProtected secure a care provider search configuration?
No. isProtected is auto-generated and currently has no effect on this type's behavior. isActive separately indicates whether the configuration is active.
Why might a mappedObject value be invalid?
Capitalization is a documented ambiguity. The exposed enumeration uses HealthcarePractitionerFacility and HealthcareProvider, but Salesforce's field table capitalizes them as HealthCarePractitionerFacility and HealthCareProvider. These spellings are not established as aliases.