SBX - Search With Button

SBX - Forum Post Title

Capture deleted Contact information from List CRM C#

Dynamics 365 General Forum

shaf12 asked a question on 16 Sep 2018 12:53 PM

Question Status

Suggested Answer

Hello,

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?

Thanks,

Reply
Goutam Das responded on 16 Sep 2018 2:32 PM
Suggested Answer

Hi,

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

Reply
Ravi Kashyap responded on 16 Sep 2018 6:43 PM
Suggested Answer

Hi,

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.

Reply
Goutam Das responded on 16 Sep 2018 2:32 PM
Suggested Answer

Hi,

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

Reply
Ravi Kashyap responded on 16 Sep 2018 6:43 PM
Suggested Answer

Hi,

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.

Reply

SBX - Two Col Forum

SBX - Migrated JS