You can tell who has erased a record?, Remains in some log of CRM or MySQL?
You can tell who has erased a record?, Remains in some log of CRM or MySQL?
Look in the module's table in the database at the modified_user_id. This will tell you who deleted the record.
Code:select users.user_name, cases.date_modified, cases.deleted from cases inner join users on cases.modified_user_id = users.id where cases.id = ''
Co-Founder of: SugarOutfitters
Modules:
SecuritySuite (Teams)
Photo Module
Follow me on Twitter:eggsurplus
Your Personal Developer
if you have access to the database, find the record (deleted=1) and it will have the modified user ID which you can use the Users table to cross reference
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
Teh table cases is emply
My guess is that you aren't having an issue with a case record being deleted. What you'll need to do is go to the table for the module/tab that you have a deleted record for. You can simply replace "cases" in the query with the appropriate table to find who deleted the record. If it is an account replace "cases" with "accounts".
Co-Founder of: SugarOutfitters
Modules:
SecuritySuite (Teams)
Photo Module
Follow me on Twitter:eggsurplus
Your Personal Developer
OK, already found
by the way, do you know the last time you deleted = 0 before being deleted = 1??
All mark as deleted changes on some record are considered as a regular record modification, so this date time information is stored on date_modified.
You can ensure after marking as deleted some record it can not be modified unless undeleted, so the current date_modified indicates the time it was deleted.
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks