+ Start a Discussion
Venkata Sravan Kumar BandariVenkata Sravan Kumar Bandari 

how to update a field value in trigger

David "w00t!" LiuDavid "w00t!" Liu
Check this example out  =)
Probably you need to add more detail to your question ?
 SO may be you just need to do a DML ?

Update acc;

Ankit AroraAnkit Arora
1) If your trigger is running in before update then you only need to fill the value in field (if field is on same object)
2) If you are updating any other object's field then as Avi suggested.
3) Make sure you don't write update explicitly in after update as it may give you exception of "record is read only"

Better if you can post your code here, and let us know what exactly you want then we may help better.