<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged uploader</title>
<link>https://overflow.efficy.io/?qa=tag/uploader</link>
<description>Powered by Question2Answer</description>
<item>
<title>Error on running script on auto mail uploader</title>
<link>https://overflow.efficy.io/?qa=2444/error-on-running-script-on-auto-mail-uploader</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to run a script on uploading email and convert it to task using auto mail uploader (though &quot;script&quot; field in configuration of mail uploader), but i'm getting the following error when i run the service like in the screenshot below.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=5701129296476532114&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;The script is like the following, simply link a user to created task:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;    function BeforeCommit(EditHandle, Inserted){
    LinkUserToAction(EditHandle, Inserted);
}

function LinkUserToAction(EditHandle, Inserted){
    var USER = 4;
    Database.SetUsers(EditHandle, USER, false);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Please advise.&lt;/p&gt;

&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2444/error-on-running-script-on-auto-mail-uploader</guid>
<pubDate>Thu, 20 Apr 2017 13:13:32 +0000</pubDate>
</item>
</channel>
</rss>