You need to sign in to do that
Don't have an account?
![Newbie 2014 Newbie 2014](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
"isDeleted" field not marked as TRUE upon standard object record deletion
Hello: Our organization needs to track the deleted records for the standard objects in salesforce for some reason and we have been relying on the ‘isDeleted’ field for the info. Deleted records are supposed to be kept in place for 15 days with that flag turned on! But we came to notice that the “opportunity product” and “accountcontactrole” tables are removing the deleted records right away instead. I am sure some other tables behaving same way.
To simulate the situation, we added a new accountcontactrole via Salesforce frontend. Then pulled the table via excel connector to verify the new record is in place. Right after we hit the ‘del’ button on the ‘contact role’ section for that record to delete our new entry. As the last step, we exported the entire table from salesforce but did NOT find any trace of that newly created record with isDeleted=true. This proves that salesforce is not keeping the deleted ‘account contact role’ records in the table with isDeleted=true for 15 days until it is permanently taken off!
Please provide me with some insights re: the discovery if you know what’s going on here. Thank you very much
To simulate the situation, we added a new accountcontactrole via Salesforce frontend. Then pulled the table via excel connector to verify the new record is in place. Right after we hit the ‘del’ button on the ‘contact role’ section for that record to delete our new entry. As the last step, we exported the entire table from salesforce but did NOT find any trace of that newly created record with isDeleted=true. This proves that salesforce is not keeping the deleted ‘account contact role’ records in the table with isDeleted=true for 15 days until it is permanently taken off!
Please provide me with some insights re: the discovery if you know what’s going on here. Thank you very much
Boolean undeletable = AccountContactRole.SObjectType.getDescribe().isUndeletable();
The information is also in the SOAP API Developer's Guide.
All Answers
Question to Kevin or anyone else who might be able to help: I need to check the 'undeletable' attribute for two child tables: accountcontactrole and opportunity product, but not sure how to do that via any interface. Googled and searched forums, but does not seem like i can do with w/o any API calls etc. Is that the only way? If yes, then would appreciate some C# coding to do that. I hope a sys admin for our CRM will have permission to do so right?
Boolean undeletable = AccountContactRole.SObjectType.getDescribe().isUndeletable();
The information is also in the SOAP API Developer's Guide.
I am also looking for "isDeleted field not marked as TRUE upon standard object record deletion" in my case for SkillUser object. Can anyone please provide more insight on this?
Thank you,
Shefali