Hello,
I have a table called Employee Payroll Control that has a relationship with the Payroll control table as Many to One.
What I am trying to achieve is the below:
When the user clicks the "Add Existing records" from the Employee Payroll Control sub-grid and opens the advanced lookup popup to find the records he wants, I would like to add a view that allows the employee to select different Payroll controls based on the filter that he needs to apply.
I tried to apply the below condition on the Payroll Control View that I created:
Knowing that the record exists in the Payroll control with the same condition:
But it seems due to the relationship type it will never fetch this data as it will always look only for the employees that have payroll control. In my requirement regardless if the employee has or doesn't have payroll control I want the user to be able to select multiple payroll controls and associate them with the employee from the Payroll control view that I want to create.
To make it work as needed, do I have to add another relationship type as N:N instead of N:1, or is that okay if keep the N:1 with N:N?
I saw this amazing blog post by Bipin Kumar but he's modifying the LookUp View directly which is different a little from my requirement:
Dynamics 365 – Sub grid Add Existing Look up View N:N – xrm CRM Dynamics (wordpress.com)
What might be the solution to achieve the above requirement? Could you please provide a similar example?
Any help is highly appreciated.
Best regards,
EBMRay