Skip to content

The MockDuplicates.DiffType Enum

GitHub Action edited this page Nov 11, 2025 · 1 revision

Represents the possible field difference values in duplicate detection results.

This enum corresponds to the Datacloud.FieldDiff.difference property values as documented in the Salesforce Datacloud.FieldDiff documentation.

Values

  • IS_DIFFERENT - Indicates the field value is different between the original and matching record
  • IS_NULL - Indicates the field value is null in one of the records
  • IS_SAME - Indicates the field value is the same in both records

Example

matchRecord.addFieldDiff('Name', MockDuplicates.DiffType.IS_SAME);

apex-database-layer

Home

Core Concepts

Reference Guide

Migration Gudes

Clone this wiki locally