function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DemiraliDemirali 

Getting Names of a Related object on a Text field of Parent

I have a custom object (Property__c). Properties are owning another custom object (Property_Units__c). 
Property Units have lookup fields which are (Tenants__c) and (Landlord__c). 

A property owns about 40 units on average. So we have 40 different tenants. 

I want to display list of Tenants on a text field on Property upon each new update. Is there a way to do it? 

 

Thanks. 

Jia HuJia Hu
You can use Trigger to do this.
Deploy a Trigger on the child object and when the Trigger is fired, query the parent record and update the corresponding field in the Trigger.