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
Saumya SumanSaumya Suman 

Need some help with Trigger

There are 3 fields on account object f1 f2 f3. f1 is inserted manually and f2 and f3 will update automatically on what event we write trigger for f2 & f3?
Purushotham PPurushotham P
Hi Saumya Suman
you can use After Insert event 
Raj VakatiRaj Vakati
You dnt need trigger i think 

Trigger accounttrigger on account  (before insert, before update){
  for(account o : 


prateek jainprateek jain
Hi Saumya,
To Meet you requirement you do not need to write trigger . You can acheive using workflow rule .
In the workflow rule use formula to  start the workflow .
use the IsChanged Function to check if the value of the field f1 is changed  this would fire the workflow when value of the field f1 changes .
inthe workflow action  Select Field Update as a Action A update the Field f2 and f3 as required .
Please let me kow if you face any difficulty