> For the complete documentation index, see [llms.txt](https://help.delpha.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.delpha.io/delpha-for-salesforce/delpha-upgrade/upgrade-tasks/build-3.56-04trl000001d4hxiac.md).

# Build 3.56 (04tRl000001D4hxIAC)

## From all versions below 3.50.6

* Reconnect your Org to Delpha: App **Delpha Setup** / Section: **Delpha Integration** / Click the **Connect** button
* Update conversations: App Delpha Setup / Section: Import Conversation&#x20;
  * Remove Data: Select All conversation package and click on 'Remove Data
  * Import Data: Based on the use cases you are implementing, select your packages : DuplicateAccountsWD, Duplicate ContactWD, DuplicateLeadWD, DuplicatePersonAccount, LeadVsContact, LinkedInEnrichment, LinkedInEnrichmentAdvanced.&#x20;

{% hint style="warning" %}
Do not select the package **Data Quality** as the corresponding [conversations have been integrated to the Score Meter](https://help.delpha.io/delpha-for-salesforce/delpha-upgrade/whats-new/data-quality.md#new-score-meter-review-and-fix-everything-in-one-place).
{% endhint %}

* [Set the automatic merge schedule for Auto Yes and Steward Yes](broken://pages/St6O0I2fDEiSsXJ8Dy3w#enable-scheduled-merge-job) pairs following these steps&#x20;
  * delete current scheduled tasks involving the Apex class: **DDQ\_DuplicateRecordAutoMerge**
  * from the app Delpha Setup > Duplicate > Initialization, section **Auto Merge Scheduler**, select the hours to run the auto merge.&#x20;
* Apply a migration script.&#x20;

This script updates the existing Duplicate Expressions and Filtering rules and ensure their proper display with the [new Duplicate Settings layout](https://help.delpha.io/delpha-for-salesforce/delpha-upgrade/whats-new/duplicate.md#visual-rule-builder-for-duplicate-management). &#x20;

Open the developer console and apply the following script.&#x20;

```apex
List<delpha__DDQ_DuplicateObject__c> dupObjs = [SELECT Id, Name, delpha__Expression__c FROM delpha__DDQ_DuplicateObject__c];
for(delpha__DDQ_DuplicateObject__c dupObj : dupObjs) {
    String expRuleStr = dupObj.delpha__Expression__c;
    System.debug('Current Rule: ' + expRuleStr);
    
    if(String.isBlank(expRuleStr) || !(expRuleStr.startsWith('[[') && expRuleStr.endsWith(']]'))) { //check here if expRule is in old format (field is not filterable in query)
        continue; //skip if already in new format
    }
    
    List<Object> expRuleList = (List<Object>) JSON.deserializeUntyped(expRuleStr);
    List<Map<String, Object>> newExpRules = new List<Map<String, Object>>();
	Integer i = 1;    
	for(Object rule : expRuleList) {
        Map<String,Object> newRule = new Map<String, Object> {
            'name' => 'Rule ' + i, 
            'rules' => rule
        };
        newExpRules.add(newRule);
        i++;
    }
    System.debug('New Rule: ' + JSON.serialize(newExpRules));
    dupObj.delpha__Expression__c = JSON.serialize(newExpRules);
}
Database.update(dupObjs);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.delpha.io/delpha-for-salesforce/delpha-upgrade/upgrade-tasks/build-3.56-04trl000001d4hxiac.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
