+ Start a Discussion
anillllanillll 

How to update a value using a trigger

when we create a new record a field should be updated with the previous record value

Bhawani SharmaBhawani Sharma
I am not sure if I understand your question correctly, still trying my best to answer
You can set data in field like
trigger TriggerName on Account(before insert) {
for(Account acc : Trigger.New) {
acc.Name = 'Test';
}
}