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
Sudhanshu Pandey 15Sudhanshu Pandey 15 

can anybody help me to write trigger on account whenever account is created a send email to that record owner and to subordinates to owner role.

AnkaiahAnkaiah (Salesforce Developers) 
Hi Sudhanshu,

You can create workflow rule to achieve this scenario instead of trigger.

Refer the below help article
https://help.salesforce.com/s/articleView?id=sf.workflow_rules_new.htm&type=5
Video link 
https://salesforce.vidyard.com/watch/IqZIFLtEx9rY7AD8QLFE3Q

If this helps, please mark it as best answer.

Thanks!!