Set up Unify merge calculation (Advanced)

Support DQE
Support DQE
  • Updated

This method retrieves the result of merging a group of identified duplicates. For example, when a group has been identified but not immediately merged, the records in the group may have been modified afterward. In this case, if you want to apply a merge, it is recommended to recalculate the result using this method.

This Apex class is designed only to calculate the merge result and does not include reparenting operations.

Request

Namespace: dqeone

Apex Controller: DQE_Fusion_RestApi

Method: getMergeResult

Parameters:

  • ProcessId (String): Optional. Leave as an empty string ('') to consider all matching records with no filtering, or pass a specific process run ID to scope the merge calculation to the records processed by that run.
  • GroupNum (String): Set to an empty string ('') because this parameter is deprecated.
  • GroupId (String): Index Group ID (value of the DQE_Index_Group_ID__c field). Mandatory.
  • SObjectName (String): Object type, for example PersonAccount, Account, or Lead. Mandatory.
  • RulesSetId (String): ID of the rules set used to calculate the merged parent data. This ID can be retrieved from the JSON exported from Rules Manager. Mandatory.

Response

{
  "error": "",
  "record": {
    "Phone": "0695473336",
    "City": "AMPONVILLE",
    "FirstName": "Aurelei",
    "MobilePhone": "",
    "State": "",
    "PostalCode": "77961",
    "LastName": "FAULKNER",
    "Country": "France",
    "Email": "airelue.fc@laposte.net",
    "Street": "Rue du Clos Gillet",
    "Id": "00Q0900000E37F3EAJ",
    "Source": "Lead"
  }
}

Signature:

global static String getMergeResult(String processId, String groupNum, String groupId, String sObjectName, String rulesSetId)

Example

Map<String, Object> merge = (Map<String, Object>) JSON.deserializeUntyped(
    dqeone.DQE_Fusion_RestApi.getMergeResult(
        '',
        '',
        '00Q0900000FP9LKEA1_a000900000UCuQMAA1',
        'PersonAccount',
        'b5164591-b7d4-487c-82dc-a10580ec13f8'
    )
);

Related to

Was this article helpful?

0 out of 0 found this helpful