Hi, I have the Dynamics 365 trial, I create a new Solution with new Entities end new Attributes to the Out Of the box Entities
I want to create a Plugin for a custom entity.
The entity is called WorkActivity, it has a lookup with another custom entity called Project and Project have a lookup with Account
I want the plugin control (OnCreate) if there's an Order associated with the same Account set in the Project's Account lookup, with a custom attribute (on Order) set to true.
If the plugin found it, I want to change the record and add a lookup (On WorkActivity) with the first-order found.
When the record change, the plugin control if the number of WorkActivity associated with the Order is greater than a custom (number) Attribute (added to Order)
I do not know where to begin.
I'm Italian, sorry for my bad English.
Thanks