Access child records in parent object using formula field:
- This can not be achieved using formula. Formulas cannot read child records.
- We can install this package from AppExchange for this functionality - https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B45gWEAR
- This can be done using Apex trigger, Process builder or Lightning Flow.
- If parent and child are related via a lookup or master-detail relationship then we can add a cross object formula to your Child object. If we refer a parent object from a child object is 'going up' and this is possible. But we can not write a formula field on the parent while trying to pull in values from the child record.
- When we are attempting to go down one level, we have to take into account that the underlying architecture allows for a parent to have multiple children. This is also called as a 'One to many' relationship. A Master-Detail relationship allow us to get record counts etc. of child records. As a whole, formula fields can 'go up' and can not 'go down'.
Resource(s): https://help.salesforce.com/
Comments
Post a Comment