when a Customer changes their email preferences that the same preferences are replicated for all Contact records with the SAME EMAIL ID.This means if nisha@af.com changes it's email preferences to Opt-Out of all organization emails,this should be udpated in all Contact records that have the same email ID.Please help to write the plugin for me please.Fields' schema names are ----
acc_\promotionalemails
acc_smsmessages
acc_updates
acc_marketingmessages
acc_letters
acc_unsubscribeemails
Source and target both are contact
The plugin should fire on the change of fields on the contact entity. Then it should look for all the records with the same email in the contact entity. Loop through all the records and update the preferences.
Can anyone please help me with the C# code please.
*This post is locked for comments