How to capture parent record in related list of child record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 08:53 AM
Hello,
We have created M2M table to add related list in incident table that is "related incident". when we are going to add related incident in related list "related incident" at that moment record are getting added but we open the added record from incident table our expected result is where we add this record its parent record number should be visible in its related list i.e "related incident" but that is not working. How we can do that?
Is this possible by business rule?
from above picture we have added INC0000054 in INC0007001 indicident so our expected result is INC0007001 must be visible in related list of INC0000054 .
M2M table-
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 10:44 AM
Thank you for your response..
Can you please explain me how can I create one-to-many relationship ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 10:48 AM
One-to-many relationship is available out of the box. You don't need to create it. It uses the Parent field and the Child Incidents related list.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 11:07 AM
For a custom table also is this OOB related list present?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 11:09 AM
Simply by creating a reference field, you will have a one to many relationship.
Add the "parent" reference field to your "child" table.
Then on the Parent table, you can add a related list (which will be created automatically)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 11:16 AM
If your custom table extends Task [task], it will inherit the Parent field and you will be able to related records in the same way as Incidents. If your table is not a child class of Task, you can use another reference field pointing to the same table (even a custom one) to establish a one-to-many relation between records in your table. For every reference field pointing to your table, there is by default a related list available. You can label it whatever you want by configuring list controls.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/