<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged copydetails</title>
<link>https://overflow.efficy.io/?qa=tag/copydetails</link>
<description>Powered by Question2Answer</description>
<item>
<title>Efficy.copyDetails and workflow</title>
<link>https://overflow.efficy.io/?qa=5450/efficy-copydetails-and-workflow</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I wanted to know if the workflow is triggered when the function Efficy.copyDetails is used.&lt;/p&gt;

&lt;p&gt;I combined two components :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A project team guide developed by Kristof logs every workflow trigger : &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/projectguides/workflow_events&quot;&gt;https://help.efficy.io/edn/projectguides/workflow_events&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;A simple scheduler script :&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;Create a new action with an user and a company.&lt;/li&gt;
&lt;li&gt;Create a new action based on the first one with the Efficy.copyDetails function and the following details : ntUser and ntComp.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I confirm that the workflow is not triggered when this function is used.&lt;br&gt;
&lt;strong&gt;What are the motivations ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If it's ok to not trigger the workflow, it should be great to add a comment (or a symbol) in the documentation.&lt;/p&gt;

&lt;p&gt;Kr,&lt;/p&gt;

&lt;p&gt;Eric&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5450/efficy-copydetails-and-workflow</guid>
<pubDate>Mon, 25 May 2020 07:03:34 +0000</pubDate>
</item>
<item>
<title>Whish SYS_QUERIES is used by Efficy.consultDetail ?</title>
<link>https://overflow.efficy.io/?qa=4255/whish-sysqueries-is-used-by-efficy-consultdetail</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I've added a new field (&lt;code&gt;F_ROLE&lt;/code&gt;) in &lt;code&gt;PROJ_COMP&lt;/code&gt;. I'm trying to get the value of this new field using a consult detail, (the purpose is to copy link and the new fields value from &lt;code&gt;proj_comp&lt;/code&gt; to &lt;code&gt;docu_comp&lt;/code&gt;) &lt;/p&gt;

&lt;p&gt;I've created a new &quot;Proj : Linked Comp&quot; in &lt;code&gt;SYS_QUERIES&lt;/code&gt;, but when i execute my code i always receive an error, &lt;code&gt;F_ROLE&lt;/code&gt; not found, so i supposed consultDetail use an other queries ?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var detailCompDataSet = database.consultDetail(0, projContext, projKey, ntComp, true, true, 0);
if (!detailCompDataSet.IsEmpty) {
  detailCompDataSet.first;
  while (!detailCompDataSet.Eof) {
    var compKey = detailCompDataSet.FieldByName(&quot;K_COMPANY&quot;).AsFloat;
    database.InsertDetail2(docuContext, ntComp, compKey, false);    
    database.UpdateDetail2(docuContext, ntComp, compKey, &quot;F_ROLE&quot;, 
detailCompDataSet.FieldByName(&quot;F_ROLE&quot;).AsFloat);
    detailCompDataSet.Next;
  }
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4255/whish-sysqueries-is-used-by-efficy-consultdetail</guid>
<pubDate>Thu, 16 May 2019 10:03:47 +0000</pubDate>
</item>
</channel>
</rss>