Private ReadonlydeployerPrivate ReadonlyloggerPrivate ReadonlyrecordPrivate ReadonlysalesforcePrivate Static ReadonlydeployPrivatebuildPrivatebuildPrivatebuildCompare the specified datapacks against the data in the target org.
Datapacks to compare
Optionaloptions: DatapackComparerOptionsOptions controlling the datapack to record conversion; deployment only options are ignored
OptionalcancelToken: CancellationTokenAn optional cancellation token to abort the comparison
Comparison result with per datapack root details on how the datapack compares to the target org
Compare the converted records of an existing deployment against the target org. This is used by delta deployments to reuse the bulk comparison as their input without converting the datapacks a second time.
Deployment containing the converted records to compare
Optionaloptions: DatapackComparerOptionsOptions controlling bulk extraction and progress reporting
OptionalcancelToken: CancellationTokenAn optional cancellation token to abort the comparison
PrivatecompareDelta compare the records matched through their matching key against the org data in chunks so progress can be reported while the comparison is running. Records of extracted types are compared against the extracted org data without additional org queries.
Optionaloptions: DatapackComparerOptionsOptionalcancelToken: CancellationTokenPrivateextractBulk extract the org records for the SObject types in the deployment into an OrgDataStore so record lookups and comparisons resolve locally instead of through filtered org queries. Types exceeding the extract limits fall back to filtered org queries.
Optionaloptions: DatapackComparerOptionsOptionalcancelToken: CancellationTokenPrivategetGet the org fields to extract for a SObject type: the union of the record values, matching key fields and parent reference fields of the records, resolved case-insensitively against the org schema.
PrivatehasRecords with a usable matching key are identified in the target org through their matching key configuration; records without (DatapackDeploymentRecord.skipLookup, no upsert fields, or upsert fields without values -- e.g. a matching key on an auto-number field which is never part of the record values) are matched by comparing the record data instead.
PrivatematchMatch datapack records without matching key against org data; records that match are assigned the matched org record so records deeper in the datapack tree can resolve their parent references.
OptionalcancelToken: CancellationTokenPrivateresolveResolve the existing org record IDs for records of extracted types against the OrgDataStore mirroring the matching key semantics of DatapackDeployment.resolveExistingIds: records are located by their matching key fields restricted by their resolved parent references; records that match are updated, records without a match are inserted.
PrivateresolveResolve the org records for all records in the deployment in dependency order: parents are resolved before their children so child records can be located through their parent references. Records with a matching key are resolved through an org lookup; embedded records without matching key are matched against org data through the deployments DatapackDeployment.recordMatcher.
Optionalstore: OrgDataStoreOptionaloptions: DatapackComparerOptionsOptionalcancelToken: CancellationToken
Compares datapacks against the data in a target org without deploying them. The comparison reports per datapack root whether the datapack is in sync with the target org and how it mismatches: