Delete message is not working to disassociate contacts from Marketing List table.
Loading
Delete message is not working to disassociate contacts from Marketing List table.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Allam PurushothamPosted Mar 5, 2024, 9:11 AM
Hi Prasad,
Plugin will not trigger for Delete Message, while disassociating the contact from Marketing List.
You need to register Plugin message with RemoveMember.
https://www.c-sharpcorner.com/article/trigger-a-plugin-when-contact-removed-form-marketing-list-entity/
Kiran GirasePosted Apr 23, 2024, 8:16 AM
Hi,
To delete a contact record from the Marketing List table using a plugin in Dynamics 365, you need to write a custom plugin that triggers on the deletion of contact records and removes the corresponding record from the Marketing List table. Here's a general outline of how you can achieve this:
1.Create a Plugin: First, create a plugin assembly using Visual Studio or any other preferred development tool.
2.Register the Plugin: Register the plugin on the Delete event of the Contact entity.
3.Retrieve Marketing List Records: In your plugin code, retrieve the Marketing List records that contain the deleted contact. You can do this by querying the Marketing List entity using the contact's ID.
4.Remove Contact from Marketing List: Once you have retrieved the Marketing List records, remove the contact from each of these lists.
5.Update Marketing List Records: Update the Marketing List records in Dynamics 365 to reflect the removal of the contact.
Below the sample code,
fadecePosted Mar 5, 2024, 9:10 AM
To delete a contact record from the Marketing List table using a plugin in a CMS development services Dubai scenario, follow these steps:
Mithilesh TataPosted Mar 5, 2024, 8:47 AM
If the Delete message is not working for disassociating contacts from a Marketing List table, it's possible that there might be an issue with the plugin registration, the code logic, or the context in which the plugin is executing. Here are some troubleshooting steps you can follow:
Verify Plugin Registration:
Debugging Plugin Code:
Verify Plugin Execution Context:
Check Security Roles and Permissions:
Review Code Logic:
RemoveMemberFromListorDisassociate).Test Manually:
Consult Documentation and Community:
By following these steps and thoroughly investigating the potential causes of the issue, you should be able to identify and resolve any issues preventing the Delete message from correctly disassociating contacts from the Marketing List table.