Skip to main content

MGCBallastSnapshotService.compareVersions

Compares one version's stored values with another version's, in the versions' company.

  • HTTP method: POST
  • Route: /api/services/MGCBallastServiceGroup/MGCBallastSnapshotService/compareVersions
  • Service class: MGCBallastSnapshotService

Parameters​

NameTypeOptionalDescription
_requestMGCBallastCompareRequestContractNoBundle, LegalEntityId (Cust), VersionRecId, OtherVersionRecId, and optionally MaxDifferences.

Returns​

MGCBallastCompareResponseContract

Per-table row counts and the differences found.

Security​

  • Requires privilege MGCBallastIntegrationServiceView

Data contracts​

The data contracts this operation takes and returns, with their members. A member whose type is another data contract links to that contract below.

MGCBallastCompareRequestContract​

Request to compare a Ballast version's stored values - with the live parameter tables (compareVersionToLive) or with another version of the same bundle (compareVersions).

MemberTypeListDescription
RequestIdGuidNoGets or sets the caller's request identifier; echoed on the response.
CorrelationIdGuidNoGets or sets the identifier that ties this call to others in the same test or integration run.
BundleMGCBallastBundleNoGets or sets the bundle: System or Cust.
LegalEntityIdDataAreaIdNoGets or sets the company to compare in. Blank uses the caller's current company.
VersionRecIdRefRecIdNoGets or sets the version whose values are compared.
OtherVersionRecIdRefRecIdNoGets or sets the version to compare with (compareVersions only).
MaxDifferencesintNoGets or sets how many differences to return in detail; zero means 200. All are counted.

MGCBallastCompareResponseContract​

Response for a comparison: one Tables entry per value table in the bundle with its row counts, and the field-level Differences. DifferenceCount counts every difference; Differences lists at most MaxDifferences of them, and Truncated says when there were more.

MemberTypeListDescription
SuccessbooleanNoGets or sets whether the operation completed. False means Message and ErrorCode say why.
MessagestrNoGets or sets the outcome in words, including any validation messages the operation raised.
ErrorCodestrNoGets or sets a machine-readable failure class: ValidationFailed, NotFound, LicenseNotValid, PublishNotComplete or Failed. Empty on success.
RequestIdGuidNoGets or sets the caller's request identifier; echoed on the response.
CorrelationIdGuidNoGets or sets the identifier that ties this call to others in the same test or integration run.
ComparisonstrNoGets or sets what was compared: VersionToLive or VersionToVersion.
TableCountintNoGets or sets the number of tables compared.
DifferenceCountintNoGets or sets the total number of differences found.
TruncatedbooleanNoGets or sets whether more differences were found than are listed.
TablesList of MGCBallastCompareTableContractYesGets or sets one entry per table compared.
DifferencesList of MGCBallastCompareDifferenceContractYesGets or sets the differences found, up to MaxDifferences.

MGCBallastCompareTableContract​

One table in a comparison: its name, the rows on each side and the differences found in it.

MemberTypeListDescription
TableNamestrNoGets or sets the table: the live table name for VersionToLive, the value table name for VersionToVersion.
VersionRowsintNoGets or sets the rows the version holds for this table.
ComparedRowsintNoGets or sets the rows on the compared side: live rows, or the other version's rows.
DifferenceCountintNoGets or sets the differences found in this table.

MGCBallastCompareDifferenceContract​

One difference: a field whose value differs between the version and the compared side, or a row present on one side only (FieldName (row)), or a row key held more than once (FieldName (duplicate row key)).

MemberTypeListDescription
TableNamestrNoGets or sets the table the difference is in.
RowKeystrNoGets or sets the key of the row, its unique key values joined by |; empty for single-row tables.
FieldNamestrNoGets or sets the field that differs.
VersionValuestrNoGets or sets the value the version holds.
ComparedValuestrNoGets or sets the value on the compared side.