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
jishan royjishan roy 

What is the Datatype of trigger.new

hello can anybody help to find the solution of
Data types of trigger.new i m confuse.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Jishan,

Trigger.new returnd the List<Sobject> which means if it is used on Account it returns List<Account> .

Please find the below artcile for the same.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_context_variables.htm

If this solution helps, Please mark it as best answer.

Thanks,