In our Dynamics 365 instance, we've got a custom entity called Activity entry which is associated with out of box Project entity. These 2 entities are associated with a N:N relationship.
Hence, each project can have multiple entities associated with it.
Problem:
Get a total count of
Activity entryentities when they're associated to theProjectentity such that when
- an
Activity entryis associated with aProjectentity, increment the activities count- an
Activity entryis disassociated with aProjectentity, decrement the activities count
What we've tried so far?
We've tried to implement a workflow process to get this thing, but couldn't understand this association/dis-association aspect