I have created a custom entity called Restrictions that consist of two types of contacts: The contacts are either Type A or Type B. Whether a contact is type A or B is controlled by a specific Field on the contact. I have also a third custom entity called Assignments which must be filled in with a contact Type A and a contact Type B. What i want is a subgrid on Assignments which shows the listing only if contact A or contact B is Connected to Assignment and Restrictions.
For example:
If Jon Doe (type A contact) is listet in the Restrictions entity and in the Assignments, I want all his listings in the subgrid on Assignments
If Mr. X. (type B contact) is listet in the Restrictions entity and in the Assignments, I want all his listings the subgrid on Assignments also.
If Mr. Y is listed in the Restrictions entity, but not in the Assignments I do not want him listed in the subgrid on Assignments.
Is there any way to do this in Dynamics CRM?