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
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!!