AnsweredAssumed Answered

Default assigned user id while import

Question asked by Maksim Nesterenko on May 22, 2015
Latest reply on May 28, 2015 by Maksim Nesterenko
Hello everyone!
My proble is changing assigned user name to current user while import process.
I have an account import file (in CSV). There are only [Name] and [Assigned User Name] fields. I have added a couple records with different assigned user names. All assigned user names in file also exists in my Sugar system. When I try to import only first record have been set right, other equals current user.
There's one interesting thing in the code (modules/Import/Import.php on line 543. sanitizeFieldValueByType method):
// Bug 33623 - Set the id value found from the above method call as an importColumn

if ($returnValue !== false) $this->importColumns[] = $fieldDef['id_name'];

This part of code have been executed after first import record processing. I try to comment this and it helps, but this part needed to fix bug 33623 as I figure out.

Generally, is that Sugar behavior (I mean setting assigned user = current user) is right?
Also want to know have met anybody such kind of problem in their practice?

Thanks a lot.

P.S. SugarCRM Professional