function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfuser12sfuser12 

Get accountId of deleted AccountTeamMembers

Hello,

How we can get accountId of deleted Account Team Member?

Thanks,
sfuser12
NagendraNagendra (Salesforce Developers) 
Hi,

May I suggest you please give a try by using the getDeleted() method which should work for you.

Note: An AccountTeamMember record that is deleted is not moved to the Recycle Bin. A deleted AccountTeamMember record can’t be undeleted unless the record was cascade-deleted when deleting a related Account. For directly deleted AccountTeamMember records, don’t use the isDeleted field to detect deleted records in SOQL queries or queryAll() calls. Instead, use getDeleted().

Please let us know if this helps.

Thanks,
Nagendra