I have a requirement where I have to add multiple related list of same object base on the some filter criteria in Salesforce Lightning.
For exm: Contact Roles is child object of Contact, now I have to add 2 related list of contact roles in Contact page layout. 1st related list based on Role1 and 2nd related list based on the Role-2 value.
I know in lightning it is possible via "Related List - Single", but the problem is in Add filter I am not able filter out the criteria based on the Child object's field, only Current Object or Parent object's fields are available for filtering.
Can someone pls suggest if I am doing something wrong or any work around! highly appreciated.
I am thinking to achieve my requirement with the help of following:
- Create a custom lightning components
- Use the data table to create related list structure
- Create custom tab to place my custom lightning component into that