<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged save</title>
<link>https://overflow.efficy.io/?qa=tag/save</link>
<description>Powered by Question2Answer</description>
<item>
<title>How do I get the CurrentUserID when creating a case from Outlook ?</title>
<link>https://overflow.efficy.io/?qa=1902/how-do-get-the-currentuserid-when-creating-case-from-outlook</link>
<description>&lt;p&gt;Hi everyone! &lt;/p&gt;

&lt;p&gt;At EasyCash they have created a new custom field &quot;Department&quot; which is mandatory. &lt;br&gt;
Then when they tried to save email from Outlook it did not work because that field was not filled in. &lt;br&gt;
I modified the workflow to set the current user's role as the &quot;department&quot;. &lt;br&gt;
My problem is that the department which is set is always the same, for every users. &lt;/p&gt;

&lt;p&gt;After investigation, I found out that when i call the CurrentUser() method, Efficy returns the value zero (0), but only when the email comes from Outlook. So i can not get the right K_ROLE. &lt;/p&gt;

&lt;p&gt;So my question is: &quot;How do I get the ID of the user which create that case from Outlook?&quot;&lt;/p&gt;

&lt;p&gt;Thanks, &lt;/p&gt;

&lt;p&gt;Prince&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1902/how-do-get-the-currentuserid-when-creating-case-from-outlook</guid>
<pubDate>Tue, 27 Sep 2016 10:09:13 +0000</pubDate>
</item>
</channel>
</rss>