# 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](/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](/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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
