# ActvPlatformFieldValue Metadata Type in SFDX

> ActvPlatformFieldValue defines field value mappings and synchronization rules between external activity platforms and Salesforce Task or Event fields in Einstein Activity Capture.

- Source: https://sfdxtalk.com/docs/metadata/actv-platform-field-value-metadata-type/
- Category: Metadata
- Applies to: Salesforce Winter '27 (API version 68.0)
- Level: intermediate
- Published: 2026-11-12
- Last updated: 2026-11-12
- Publisher: SFDX Talk Editorial (unofficial; not affiliated with or endorsed by Salesforce)
- License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

## Architectural Overview

In enterprise Salesforce orgs running Einstein Activity Capture (EAC) or unified Activity Platform integrations, standard calendar and email fields rarely capture all business-critical context. The `ActvPlatformFieldValue` metadata type defines the declarative field value mappings between external activity payloads (such as Microsoft Exchange or Google Workspace headers) and Salesforce activity fields.

Architecturally, managing `ActvPlatformFieldValue` in version control ensures that environment promotions from integration sandboxes to production maintain deterministic activity enrichment without manual post-deployment setup.

```mermaid
flowchart LR
    A["External Calendar / Email Event"] --> B["Activity Platform Sync Engine"]
    B --> C["ActvPlatformFieldValue Mapping"]
    C --> D["Activity CustomField / Standard Field"]
    D --> E["Unified Activity Timeline & Reports"]
```

## SFDX Directory & File Suffix

| Property | Value |
| :--- | :--- |
| **Metadata Type Name** | `ActvPlatformFieldValue` |
| **SFDX Directory** | `force-app/main/default/actvPlatformFieldValues/` |
| **File Suffix** | `.actvPlatformFieldValue-meta.xml` |
| **API Version Introduced** | `58.0` (Verified on `68.0` / Winter '27) |

## Key Metadata Fields

| Field Name | Type | Required | Architectural Purpose |
| :--- | :--- | :--- | :--- |
| `masterLabel` | `string` | Yes | The human-readable label displayed in Setup for this activity platform field value mapping. |
| `developerName` | `string` | No | Unique API name used by the Metadata API and SFDX source tracking. |
| `actvPlatformField` | `string` | Yes | Reference to the parent `ActvPlatformField` definition that owns this value mapping. |
| `fieldValue` | `string` | Yes | The normalized value written or matched during activity synchronization. |
| `isActive` | `boolean` | No | Controls whether the activity platform actively evaluates this field value mapping during sync. |

> [!NOTE]
> Because `ActvPlatformFieldValue` depends on the unified Activity Platform schema, ensure Einstein Activity Capture or the corresponding Activity Platform feature license is provisioned in your scratch org definition file before pushing source.

## Declarative XML & `package.xml` Examples

### Sample `.actvPlatformFieldValue-meta.xml`

```xml title="force-app/main/default/actvPlatformFieldValues/Enterprise_Meeting_Category.actvPlatformFieldValue-meta.xml"
<?xml version="1.0" encoding="UTF-8"?>
<ActvPlatformFieldValue xmlns="http://soap.sforce.com/2006/04/metadata">
    <actvPlatformField>Meeting_Classification</actvPlatformField>
    <fieldValue>Executive_Briefing</fieldValue>
    <isActive>true</isActive>
    <masterLabel>Executive Briefing Category</masterLabel>
</ActvPlatformFieldValue>
```

### Sample `package.xml` Manifest

```xml title="manifest/package.xml"
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Enterprise_Meeting_Category</members>
        <name>ActvPlatformFieldValue</name>
    </types>
    <version>68.0</version>
</Package>
```

## SFDX CLI Retrieval & Inspection

Retrieve and deploy `ActvPlatformFieldValue` components directly via the Salesforce CLI (`sf`):

```bash
# Retrieve all ActvPlatformFieldValue components from the target org
sf project retrieve start --metadata "ActvPlatformFieldValue:*"

# Retrieve a specific activity platform field value definition
sf project retrieve start --metadata "ActvPlatformFieldValue:Enterprise_Meeting_Category"

# Validate deployment in a CI pipeline without committing changes
sf project deploy start --metadata "ActvPlatformFieldValue:Enterprise_Meeting_Category" --dry-run
```

## Senior Architect Best Practices & Gotchas

- **Dependency Ordering:** Always include the parent `ActvPlatformField` and any referenced [CustomField](/docs/metadata/custom-field-metadata-type/) on `Activity` in the same `package.xml` manifest when promoting across environments.
- **Deactivation Over Deletion:** In production orgs with historical synced activities, prefer setting `<isActive>false</isActive>` rather than destructively deleting `ActvPlatformFieldValue` records so historical audit mappings remain intact.
- **Scratch Org Parity:** Add `"EinsteinActivityCapture"` or the required activity sync features to `config/project-scratch-def.json` so automated CI builds do not fail with `Invalid type: ActvPlatformFieldValue`.

> [!TIP]
> Pair `ActvPlatformFieldValue` deployments with a dedicated [PermissionSet](/docs/metadata/permission-set-metadata-type/) granting read/edit access to any mapped custom activity fields so sales reps can immediately filter timelines by the synced values.

## Frequently Asked Questions

### What is the purpose of ActvPlatformFieldValue in Salesforce?

It maps external email and calendar platform attributes to specific Salesforce activity fields during Einstein Activity Capture and Activity Platform synchronization.

### Where are ActvPlatformFieldValue files stored in an SFDX project?

They are stored in the force-app/main/default/actvPlatformFieldValues directory with the .actvPlatformFieldValue-meta.xml file extension.

### Can I deploy ActvPlatformFieldValue before deploying the target custom activity field?

No, the target CustomField on the Activity object must exist in the org or be included in the same deployment package, otherwise the deployment fails with a missing dependency error.

### How do I retrieve ActvPlatformFieldValue metadata using Salesforce CLI?

Run sf project retrieve start with the metadata parameter set to ActvPlatformFieldValue to pull all configured activity platform field value mappings into your local project.

## Official References

- https://developer.salesforce.com/docs/platform/api-metadata/references/meta-types/metadata-actvplatformfieldvalue.md
