<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged duplicate</title>
<link>https://overflow.efficy.io/?qa=tag/duplicate</link>
<description>Powered by Question2Answer</description>
<item>
<title>How works Efficy.autoMergeDuplicate exactly ?</title>
<link>https://overflow.efficy.io/?qa=6970/how-works-efficy-automergeduplicate-exactly</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Can someone explain what exactly does Efficy.autoMergeDuplicate ? &lt;/p&gt;

&lt;p&gt;I tried to merge two records I thought that if a set &lt;code&gt;alwaysKeepFirst = true&lt;/code&gt; the merge will actually keep the record data of first key without merging any data from second key.  But it looks like it only keep the key but the data from key 2 will be merged into key1 anyway.  So which means the key2 data are kind of master data of merge ?  Or does it take the recent data (d_change) as master ? &lt;/p&gt;

&lt;p&gt;What I need is actually,  to have some kind of merge that will keep only the data of key (the key I decide to keep) but will eventually take the links (to entities) of key2 if not exist in key to keep. Is it possible ? &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6970/how-works-efficy-automergeduplicate-exactly</guid>
<pubDate>Mon, 11 Sep 2023 10:16:47 +0000</pubDate>
</item>
<item>
<title>Query Builder with several NAME columns definition ... links are not working</title>
<link>https://overflow.efficy.io/?qa=6353/query-builder-with-several-columns-definition-links-working</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;Before Efficy 2021, the &lt;code&gt;pages\dialog\QueryResult.htm&lt;/code&gt; was using the &lt;code&gt;pages\grid\QueryResult.htm&lt;/code&gt; in order to set the columns definitions, now it is using the &lt;code&gt;GridColumns.txt&lt;/code&gt;. And some new GridColumns.txt definitions have been added to try to make the NAME columns clickable by using the new function tag &lt;code&gt;&amp;lt;%IfFromNativeQuery()%&amp;gt;&lt;/code&gt; : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.NAME, td.TITLE.Mail, td.SUBJECT {[&amp;lt;td class=&quot;&amp;lt;#I=OPENED;0=inactive&amp;gt;&quot;&amp;gt;&amp;lt;%IfFromNativeQuery(
then=`&amp;lt;#F=$FIELD$;emptytext=T;context=TEXT&amp;gt;`,
else=`&amp;lt;a href=&quot;javascript:View('$ENTITY$','&amp;lt;#F=$KEY$;absent=T;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;emptytext=T;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;`)%&amp;gt;&amp;lt;/td&amp;gt;]}

td.K_CONTACT  {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Cont','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_COMPANY  {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Comp','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_PROJECT  {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Proj','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_DOCUMENT {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Docu','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_PRODUCT  {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Prod','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_PUBLICATION {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Publ','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_OPPORTUNITY {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Oppo','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_CASE     {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Case','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_PROFILE  {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Prof','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_ACTION   {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Acti','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
td.K_MAIL     {[&amp;lt;%IfFromNativeQuery(then=`&amp;lt;td&amp;gt;&amp;lt;a href=&quot;javascript:View('Mail','&amp;lt;#F=$FIELD$;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;`)%&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The issue with this change is that in a simple Efficy Query like below, it is now not possible to click on the Company or Contact name to view it. &lt;strong&gt;This was working in the previous version of Efficy!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Example of a simple Query Builder in order to reproduce this: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[Select]
OPPORTUNITIES.K_OPPORTUNITY
OPPORTUNITIES.NAME
COMPANIES.K_COMPANY
COMPANIES.NAME
CONTACTS.K_CONTACT
CONTACTS.NAME

[From]
OPPORTUNITIES
OPPORTUNITIES OPPO_COMP
OPPO_COMP COMPANIES
OPPORTUNITIES OPPO_CONT
OPPO_CONT CONTACTS

[Where]

[Orderby]

[Options]
ChangeParameters=0
Distinct=0

[InlineEdit]
OPPORTUNITIES.K_OPPORTUNITY{}
OPPORTUNITIES.NAME{}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In order to make it clickable I can add the following aliases ... but then that means we need to review all the queries in the Customer Database which is really a pain in the A** and this may raise issue with existing queries.&lt;/p&gt;

&lt;p&gt;Alias Example:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=14314080625621442045&quot; alt=&quot;QueryBuilder Alias&quot;&gt;&lt;/p&gt;

&lt;p&gt;I looked a bit in the source of the &lt;code&gt;pages\dialog\QueryResult.htm&lt;/code&gt; and find that the duplicated NAME columns are named NAME&lt;em&gt;1, NAME&lt;/em&gt;2 ... so I tried to add the following  GridColumnsCustom.txt definitions but it seems that the $ENTITY$ is empty!&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.NAME_1, td.NAME_2 {[&amp;lt;td class=&quot;&amp;lt;#I=OPENED;0=inactive&amp;gt;&quot;&amp;gt;&amp;lt;%IfFromNativeQuery(
then=`&amp;lt;#F=$FIELD$;emptytext=T;context=TEXT&amp;gt;`,
else=`&amp;lt;a href=&quot;javascript:View('$ENTITY$','&amp;lt;#F=$KEY$;absent=T;context=JS,ATTR&amp;gt;')&quot;&amp;gt;&amp;lt;#F=$FIELD$;emptytext=T;context=TEXT&amp;gt;&amp;lt;/a&amp;gt;`)%&amp;gt;&amp;lt;/td&amp;gt;]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=13214430766166781672&quot; alt=&quot;QueryBuilder new Definitions&quot;&gt;&lt;/p&gt;

&lt;p&gt;Is there another way to activate the old behavior? &lt;br&gt;
Can we override the &lt;code&gt;pages\dialog\QueryResult.htm&lt;/code&gt; and call the old page &lt;code&gt;pages\grid\QueryResult.htm&lt;/code&gt; or it is not recommended to do it?&lt;/p&gt;

&lt;p&gt;Cf also Submariner ticket &lt;a rel=&quot;nofollow&quot; href=&quot;https://submariners.efficy.com/crm/view/Case/233155&quot;&gt;CFT-2021-190155&lt;/a&gt;&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6353/query-builder-with-several-columns-definition-links-working</guid>
<pubDate>Fri, 12 Nov 2021 13:54:28 +0000</pubDate>
</item>
<item>
<title>duplicate document in workflow</title>
<link>https://overflow.efficy.io/?qa=6153/duplicate-document-in-workflow</link>
<description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;When a document is duplicated, a couple of values are overwritten to the default values because of the function 'EditInitializedDocu' in the workflow.&lt;/p&gt;

&lt;p&gt;I want to put these lines of code in an if else clause, so the default values are not set when the document is a duplicate from another.&lt;br&gt;
 Is there a way to know if a document is a duplicate in the workflowfunction 'EditInitializedDocu'?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6153/duplicate-document-in-workflow</guid>
<pubDate>Mon, 07 Jun 2021 10:20:36 +0000</pubDate>
</item>
<item>
<title>Duplication Merge Workflow?</title>
<link>https://overflow.efficy.io/?qa=6106/duplication-merge-workflow</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to execute a script in the workflow trigger PrepareDuplicateMerge but this trigger is called 2 times : &lt;br&gt;
 - once when the page of Duplication is loaded&lt;br&gt;
 - and when we validate our choice to merge&lt;/p&gt;

&lt;p&gt;What i need is to execute only the script when the user submit his choice to merge, could you help me please?&lt;/p&gt;

&lt;p&gt;Thanks&lt;br&gt;
Version : Efficy 11.2&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6106/duplication-merge-workflow</guid>
<pubDate>Wed, 19 May 2021 12:01:12 +0000</pubDate>
</item>
<item>
<title>Preselecting duplication merge values</title>
<link>https://overflow.efficy.io/?qa=4083/preselecting-duplication-merge-values</link>
<description>&lt;p&gt;&lt;strong&gt;Question from a partner :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it possible to manipulate the values selected before/during a merge of duplicates (and if so, howto do it ?)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a duplication merge, &lt;strong&gt;the highest type and subtype&lt;/strong&gt; should be preselected.&lt;/p&gt;

&lt;p&gt;Type/ Subtype ranking (1 = highest ranking):&lt;br&gt;
1. Customer / Collector&lt;br&gt;
2. Customer / VIC&lt;br&gt;
3. Customer / Promising Customer&lt;br&gt;
4. Customer / Stated Owner&lt;br&gt;
5. Customer / Former Owner&lt;br&gt;
6. Prospect / VIP&lt;br&gt;
7. Prospect / Promising Prospect&lt;br&gt;
8. Prospect / Appreciated Prospect&lt;/p&gt;

&lt;p&gt;Currently, the type and subtype are preselected from the contact that was last edited. Yes you can change it, but it happens, that a customer being turned into a prospect. Now we would like to change the default settings.  &lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4083/preselecting-duplication-merge-values</guid>
<pubDate>Wed, 10 Apr 2019 07:39:19 +0000</pubDate>
</item>
<item>
<title>&quot;Duplicate(s) found&quot; notification stuck in SYS_MAILS - how to change recipient</title>
<link>https://overflow.efficy.io/?qa=4082/duplicate-found-notification-sysmails-change-recipient</link>
<description>&lt;p&gt;HI all,&lt;/p&gt;

&lt;p&gt;I just found out that quite a  bunch of emails got stuck in SYS_MAILS, because of a recipient that has no email address. The efficy mail dispatcher had to wait until those emails got deleted...&lt;/p&gt;

&lt;p&gt;Those emails were created by the DoubleFinder.&lt;br&gt;
Here is the question: How does the DoubleFinder determine the recipient and can I change this behaviour?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4082/duplicate-found-notification-sysmails-change-recipient</guid>
<pubDate>Wed, 03 Apr 2019 07:25:41 +0000</pubDate>
</item>
<item>
<title>Better way to duplicate product and set relation field</title>
<link>https://overflow.efficy.io/?qa=3521/better-way-to-duplicate-product-and-set-relation-field</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Some of the product linked to a document are batches (type of product).&lt;br&gt;
On click on a &quot;duplicate document&quot; button :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;click on button&lt;/li&gt;
&lt;li&gt;iterate through DetailDataSet(DOCU&lt;em&gt;PROD)&lt;br&gt;
2.1 if it's a batch --&amp;gt; duplicate it and replace the old ones with the new ones&lt;br&gt;
2.2 if it's not a batch, check F&lt;/em&gt;LOT and if it is not null update it with the last Batch&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The function below works, but I found two ways to do this (cf. code) :&lt;br&gt;
The first one duplicate the product (Batch), get the &quot;old data&quot;, delete the &quot;old&quot; relation, insert the duplicate and update the relation fields with the &quot;old data&quot;&lt;/p&gt;

&lt;p&gt;The second one just update the fields of the current relation.&lt;/p&gt;

&lt;p&gt;I keep the second because it avoid me to copy the relation fields.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First problem : &quot;CommiChanges&quot; of prodEdit :&lt;/strong&gt;&lt;br&gt;
- if I don't commit it, the product don't exists in the DB, the Document is displayed properly, but an error is thrown when the user click on &quot;save&quot; or &quot;apply&quot; button&lt;br&gt;
- if I commit it, the product is added in the DB, so the save/apply works, but if the user &quot;cancel&quot; the document the product is still in the DB...&lt;/p&gt;

&lt;p&gt;Can I solve this problem or is it impossible ?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second problem : docuProdDS.Edit&lt;/strong&gt;&lt;br&gt;
You can see 3 &quot;docuProdDS.Edit()&quot; in the function, it's because the first don't do anything :&lt;br&gt;
- if I Use the first one, Efficy throw an error&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Message: Error while executing Script &quot;DuplicateDocu&quot; at line 707 char&lt;br&gt;
  21. Message: &quot;DS&lt;em&gt;DocuEdit&lt;/em&gt;6&lt;em&gt;Docu&lt;/em&gt;Prod: Dataset not in edit or insert mode&quot;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;if I use the 2 last it works&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why Efficy say me that the Dataset is not editable if I don't use the first one and not le 2 last ?&lt;/p&gt;

&lt;p&gt;To call my script I customized Efficy.js/Duplicate() in &lt;strong&gt;Custom.js&lt;/strong&gt; :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function Duplicate(Entity, Key, Action, ExtraParam) {
    var Param = &quot;copyfrom=&quot; + Key;
    console.log(&quot;custom.entity=&quot;+Entity);
    if (ExtraParam) Param += &quot;&amp;amp;&quot; + ExtraParam;

    if(Entity=='Docu') { // custom duplicate if it's a Document
        EditNewWithScript(&quot;Docu&quot;, Param, &quot;serverscripts/Document.js&quot;, &quot;DuplicateDocu&quot;)
    }
    else { // else standard duplicate
        EditNew(Entity, Param, Action)
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;serverscripts/Document.js&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function DuplicateDocu() {
    Database.disableWorkflow = true; // don't trigger workflow ! (CommitDocu and InsertDocu_Prod)
    // document generated by the /Edit request
    var duplicateContext = Request.ContextHandle;
    var duplicateKey = Database.GetEditKey(duplicateContext);

    // get products
    var docuProdDS = Database.GetDetailDataSet(duplicateContext, ntProd);
    docuProdDS.Edit(); // don't works (error)

    if(docuProdDS &amp;amp;&amp;amp; !docuProdDS.IsEmpty) {
        var batchKey; // contains the current batch key (K_PRODUCT)

        docuProdDS.First;
        while(!docuProdDS.EoF) {
            var k_product =  docuProdDS.FieldByName('K_PRODUCT').AsFloat;
            var k_relation = docuProdDS.FieldByName('K_RELATION').AsFloat;
            var k_lot = docuProdDS.FieldByName('F_LOT').AsFloat;

            // debug only
            var k_lot = docuProdDS.FieldByName('F_LOT').AsFloat;
            var k_sort = docuProdDS.FieldByName('K_SORT').AsFloat;

            // Batch ? ==&amp;gt; duplicate lot
            if(k_product==k_lot) {
                var prodEdit = Database.OpenEditContext(ntProd, 0);    // batch destination

                try {
                    // duplicate the batch (same values) and get the generated key
                    Database.CopyFromExisting(prodEdit, k_product);
                    batchKey = Database.GetFieldValue(prodEdit, 'K_PRODUCT');

                    // update master NAME
                    Database.UpdateFields(prodEdit, 0, 'NAME', 'Nouveau lot (nom a changer)');
                    Database.CommitChanges(prodEdit, true); // HOW TO LINK NON PERSISTED BATCH (NO KEY) WITH THE DOCUMENT ???

                    /*** update detail ***/

                    /**
                     * METHOD 1
                     * delete old relation
                     * insert the new Batch as detail, update relation fields
                     * delete the old batch
                     *
                     *
                     * PROBLEMS :
                     *  - even if the workflow is disabled it still works
                     */

                  /*
                    // delete old batch from document
                    Database.DeleteDetail(duplicateContext, ntProd, k_product, k_relation);

                    // update detail field
                    Database.InsertDetail(duplicateContext, ntProd, batchKey, -1, false); // trigger workflow event OnInsertDetailDocuProd
                    Database.UpdateDetail(duplicateContext, ntProd, 0, 0, &quot;F_LOT&quot;, batchKey);
                    Database.UpdateDetail(duplicateContext, ntProd, 0, 0, &quot;K_SORT&quot;, k_sort);
                    Database.UpdateDetailStringField(duplicateContext, ntProd, 0, 0, 'NAME', 'Nouveau lot (nom a changer)');
                  */

                    /**
                     * METHOD 2
                     * update fields of current relation
                     * delete the old batch
                     */

                    docuProdDS.Edit();
                    docuProdDS.FieldByName('K_PRODUCT').AsString = batchKey;
                    docuProdDS.FieldByName('NAME').AsString = 'Nouveau lot (nom a changer)';
                    docuProdDS.FieldByName('F_LOT').AsString = batchKey;
                    docuProdDS.FieldByName('K_SORT').AsString = k_sort;

                    // do I have to Commit ? If yes, is refresh require (true/fale) ?
                    //Database.CommitChanges(prodEdit, false);

                }/*
                catch (e) {
                    Database.disableWorkflow = false; // if an exception is throw
                }*/
                finally {
                    Database.CloseContext(prodEdit);
                }
            }
            else if(k_lot != '') { // if product come from a batch, update F_LOT
                docuProdDS.Edit();
                docuProdDS.FieldByName('F_LOT').AsString = batchKey;
            }

            Database.disableWorkflow = false;
            docuProdDS.Next;
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3521/better-way-to-duplicate-product-and-set-relation-field</guid>
<pubDate>Mon, 10 Sep 2018 11:41:02 +0000</pubDate>
</item>
<item>
<title>Is there a way to merge contacts through serverscript ?</title>
<link>https://overflow.efficy.io/?qa=3344/is-there-a-way-to-merge-contacts-through-serverscript</link>
<description>&lt;p&gt;Hello all,&lt;/p&gt;

&lt;p&gt;In the duplicate list in Efficy, there is a button that 'automatically merge' the selected duplicates&lt;br&gt;
Using the default field choice of Efficy.&lt;br&gt;
Is there a way to do this through serverscript : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a duplicate from 2 contacts (I presume it can be done easily)&lt;/li&gt;
&lt;li&gt;Automaticaly merge this new duplicate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks !&lt;/p&gt;

&lt;p&gt;Henry&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3344/is-there-a-way-to-merge-contacts-through-serverscript</guid>
<pubDate>Fri, 22 Jun 2018 13:14:21 +0000</pubDate>
</item>
<item>
<title>Efficy2014 - Duplicate function in tree view</title>
<link>https://overflow.efficy.io/?qa=1439/efficy2014-duplicate-function-in-tree-view</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;In Efficy 2012 Summer, the tree view dropdown menu in product manager had a duplicate function. This function doesn't exist anymore in Effiy2014&lt;br&gt;
I'm able to duplication the product in efficy2014 but don't know how to get the parent key of the product being duplicated to link it to the new product.&lt;/p&gt;

&lt;p&gt;Thanks for help.&lt;br&gt;
Best Regards&lt;br&gt;
Anne&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1439/efficy2014-duplicate-function-in-tree-view</guid>
<pubDate>Mon, 21 Mar 2016 18:00:18 +0000</pubDate>
</item>
<item>
<title>Duplicate - Preparing Merge - What Fields can we use in the DataGrid?</title>
<link>https://overflow.efficy.io/?qa=531/duplicate-preparing-merge-what-fields-can-use-the-datagrid</link>
<description>&lt;p&gt;Here is the list of Fields Available in the DataSet of the Workflow Trigger &quot;PrepareDuplicateMerge&quot;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Be careful the fields VALUE and VALUE2 are containing HTML and&lt;br&gt;
  JavaScript for some  fields.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;FIELDNAME&lt;br&gt;
DETAIL&lt;br&gt;
DETAILKEY&lt;br&gt;
DETAILNAME&lt;br&gt;
DISPLAYORDER&lt;br&gt;
FIELDID&lt;br&gt;
FIELDINDEX&lt;br&gt;
FIELDLABEL&lt;br&gt;
SELECTED&lt;br&gt;
TABLEVIEWINDEX&lt;br&gt;
TOMERGE&lt;br&gt;
TYPEFLD&lt;br&gt;
LENGTH&lt;br&gt;
VALUE&lt;br&gt;
VALUE2&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=531/duplicate-preparing-merge-what-fields-can-use-the-datagrid</guid>
<pubDate>Wed, 22 Jul 2015 17:00:44 +0000</pubDate>
</item>
<item>
<title>query: how to clean doubles after Exchange-Synchro? (action/agenda)</title>
<link>https://overflow.efficy.io/?qa=281/query-how-clean-doubles-after-exchange-synchro-action-agenda</link>
<description>&lt;p&gt;after a Synchro-Exchange I have a lot of actions that are duplicated.&lt;br&gt;
Do you have a query with which we can clean this?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=281/query-how-clean-doubles-after-exchange-synchro-action-agenda</guid>
<pubDate>Tue, 17 Mar 2015 11:31:09 +0000</pubDate>
</item>
</channel>
</rss>