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
Info MerryckInfo Merryck 

New to Apex Triggers- Help with custom objects

Hi all, 

I am trying to create a auto populated field. We have a custom object, 'Engagement'. I want to create a new field under contacts that shows engagments that are starting soon. Ideally when an engagement has a confirmed start date that is greater than today it will be shown in this field. 

Does anyone have any advice how I could do this? 

Do contact is static here ?  if it is then all the Engagement record will be under the 1 contact? If no then please elaborate the linking of contact?

Saket Sharma
Info MerryckInfo Merryck
Hi Saket, 

Enagements can be linked to multiple contacts. To make an engagement you need to link it to a contact. 


Sridhar NarayansaSridhar Narayansa
Not sure what is the concern here. Go ahead and use Apex to update the related contacts.