At EasyCash they have created a new custom field "Department" which is mandatory.
Then when they tried to save email from Outlook it did not work because that field was not filled in.
I modified the workflow to set the current user's role as the "department".
My problem is that the department which is set is always the same, for every users.
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.
So my question is: "How do I get the ID of the user which create that case from Outlook?"