: Following are the details of what needs to be covered:
- Make sure we have Account to Contact (1:N) relationship setup calling the subgrid as Related Contacts
- Create a new field in Account and Contact both called as “Payment Type” which is an optionset field having options as {Cash, Debit Card, Credit Card}
- Create a plugin on Account entity which will be registered on “Update” of “Payment Type” field.
- Plugin logic will include following steps:
- Retrieve all related Contacts corresponding to Account in context
- Update “Payment Type” field on all the Contacts same as what has been set on updated Account record