So now that I've gotten a nice new install of SugarCRM setup with our existing data, my manager wants me to try and move/attach items like Accounts/Contacts/Leads from one user (Who is inactive/terminated) to another user (Active).
So my first thought was to do this in the database, simply by finding all references to the inactive/terminated user and replacing it with the account he wants them transferred to. I looked in the user table, found the "user_name" of both accounts and then noted the "id" for each.
At this point would it be as simple as constructing a query that basically finds all references to the inactive/terminated user's "id" and replacing it with the active user's "id"?
I did this for an account in a test instance of SugarCRM I have, and it does seem to update the "Assigned To" area for the account, but I'm not sure if there are other aspects that I may be overlooking that would make this the wrong way to go at it.
I saw some other links about modules and logic_hooks, but I'm not really understanding that concept and feel more comfortable with the SQL way...thoughts/suggestions? Thanx!!!


LinkBack URL
About LinkBacks



Reply With Quote
I went ahead and just replaced the "assigned_to" fields with the other user's userid and it looks like it did the trick.
Bookmarks