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
JuulJuul 

Trigger to update Contracts

Hi,

 

Does anyone have an example how to create a trigger (and test class) to update all contracts, when the lastmodified date of a custom object is changed?

 

I need this because I created some cross-object date formulas on the contract object, which have to be updated every time a change has been made in the custom object. A workflow (time-trigger) will send the owner a warning several days before. 

 

I've already tried this app http://appexchange.salesforce.com/listingDetail?listingId=a0N300000023bFjEAI

but it's only working for standard objects, unless you pay. 

 

Thanks