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
Renil RejithRenil Rejith 

Compare fields using trigger

Hi all,
  • So i have a custom object called member_year__c which has a field called terms__c.  
  • I have another custom object called members__c which has two record types , member and dependent.
  • Dependent__c also has a field called terms__c.
  • Now I want to compare the terms__c field in member_year __c with the terms__c field in dependent__c and if they are different Then i want to populate a string which says "Various" to a field in member_year__c Object called Terms_Vrious__c. Can somebdy help with a trigger to achieve this pls. 
 
Many Thanks
Renil RejithRenil Rejith
Member_Year__c and Member__c has a look up realtionship