Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
I want capture Contact information from list when records get deleted.
This line is failing for me.
Entity Contatct = service.Retrieve("listmember", entityId, new ColumnSet(true));
Can you please help?
Retrieve method is not supported for deleted record.
You can not retrieve deleted record using API or any SDK method.
If you are using on premise then you can restore database if you have any backup and get data from from there.
In addition if the auditing is enable for contact entity you can get contact info using database query.
select * from Audit where Operation=3 and ObjectTypeCode=2
The Retrieve message is not available for listmember entity? You can only use create, delete or retrieve multiple. Check this: docs.microsoft.com/.../listmember
Please share what exactly you are trying to do and where are you writing this code? Are you actually deleting a record or removing it from the list? If you are removing it from the list and want to run some logic on remove member then you can write a plugin on removemember message. Check this: community.dynamics.com/.../dynamics-365-teams-addmembers-removemembers-vs-associate-disassociate
Hope this helps.
Business Applications communities