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
chikpeachikpea 

How to get field value in trigger code

as per doc I think its - Trigger.new.fieldname__c but this is showing some junk, looks like some object string value
 
Any idea????
Ron HessRon Hess
you can assume that the new object is a bulk trigger object

so, try

Trigger.new[0].fieldname__c