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
Venkata Sravan Kumar BandariVenkata Sravan Kumar Bandari 

how to update a field value in trigger

David "w00t!" LiuDavid "w00t!" Liu
Check this example out  =)
http://www.sfdc99.com/2013/05/12/example-how-to-write-a-simple-apex-trigger-2/
Avidev9Avidev9
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.