
Hi, I have three entities; Account > Contact > Address
On Update of Account In and Updating the Contact and on Update of Contact I'm updating the Address.
I'm confused on below things,
1. Wil the context be same for all the three operation?
2. how the context.Depth will get updated in each cases.
Hello,
If you are updating the account in CRM and you have registered a plugin on the account update => context.depth = 1
If you are updating the contact in CRM and you have registered a plugin on the contact update => context.depth = 1
If you are updating the address in CRM and you have registered a plugin on the address update => context.depth = 1
If you are updating the contact from the account plugin (that is triggered after an update in CRM) and you have registered a plugin on the contact update => context.depth = 2
If you are updating the address from the contact plugin that is updated from the account plugin (that is triggered after an update in CRM) and you have registered a plugin on the address update => context.depth = 3