<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged reference</title>
<link>https://overflow.efficy.io/?qa=tag/reference</link>
<description>Powered by Question2Answer</description>
<item>
<title>Change part of reference after commit on Efficy 10SP2+</title>
<link>https://overflow.efficy.io/?qa=2770/change-part-of-reference-after-commit-on-efficy-10sp2</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying in Efficy 10SP2+ workflow to apply the following function to modify part of a reference after commit, this reference has &quot;cannot modify&quot; checkbox ticked&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function ModifyReference(EditHandle, Inserted){
    var DS = Database.GetMasterDataSet(EditHandle, 0);
    var reference = DS.FieldByName('REFERENCE').AsString;
    if(reference.indexOf('CI-###-') &amp;gt; -1){
        var d_terminate = DS.FieldByName('F_D_TERMINATION').AsString;
        var newReference= reference.replace('###', d_terminate);
        try{
            Database.DisableSecurity = true;
            Database.DisableWorkflow = true;
            Database.UpdateStringField(EditHandle, 0, &quot;REFERENCE&quot;, newReference);
            Database.CommitChanges(EditHandle, false);          
        } finally{
            Database.DisableWorkflow = PrevWFState;
            Database.DisableSecurity = PrevSecState;
        }       

    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But i'm always getting the following error, even same functionality used to work on previous versions&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=1645982555218765130&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;If i removed the checkbox tick on reference (so it can be modified), the script runs smoothly. But i;m pretty sure it was working with no problems on previous Efficy releases even with that checkbox ticked.&lt;/p&gt;

&lt;p&gt;Please advise.&lt;br&gt;
Thank you for your help in advance.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2770/change-part-of-reference-after-commit-on-efficy-10sp2</guid>
<pubDate>Mon, 27 Nov 2017 14:32:53 +0000</pubDate>
</item>
<item>
<title>Shared reference number for opportunities and projects</title>
<link>https://overflow.efficy.io/?qa=2450/shared-reference-number-for-opportunities-and-projects</link>
<description>&lt;p&gt;I would like to use only one counter for opportunities as well as for projects. Now the counters are seperated and not related to each other. This results in strange, non-logical sequences&lt;/p&gt;

&lt;p&gt;How can I use the reference counter of the opportunities also for the projects?&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2450/shared-reference-number-for-opportunities-and-projects</guid>
<pubDate>Fri, 21 Apr 2017 16:02:55 +0000</pubDate>
</item>
<item>
<title>Automatically assign project when uploading email in Efficy</title>
<link>https://overflow.efficy.io/?qa=2236/automatically-assign-project-when-uploading-email-efficy</link>
<description>&lt;p&gt;The subject of all emails we send to our customers starts with the reference number. This is something we agreed on. &lt;/p&gt;

&lt;p&gt;Is it possible to automatically recognize the reference number in the subject when saving the email in Efficy? Would be great if we can automatically assign the project to the email! &lt;/p&gt;

&lt;p&gt;Thanks for your help!&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2236/automatically-assign-project-when-uploading-email-efficy</guid>
<pubDate>Mon, 30 Jan 2017 06:39:53 +0000</pubDate>
</item>
</channel>
</rss>