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
s_k_as_k_a 

how to populate a field on account with status of Most recent Contract of Account

How to populate a field on account object with status of most recent contract (based on contract Start Date value)? contract object has look up relation with account.

 

To do this Apex code is required? or is there any way using formula field. 

Best Answer chosen by Admin (Salesforce Developers) 
@anilbathula@@anilbathula@

Hi

 

You need to write a trigger on contract after update,after insert,after delete.

Then the account will be update with recent values of contract.

 

 

All Answers

@anilbathula@@anilbathula@

Hi

 

You need to write a trigger on contract after update,after insert,after delete.

Then the account will be update with recent values of contract.

 

 

This was selected as the best answer
s_k_as_k_a

Thanks Anil.