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
Jakson MonteiroJakson Monteiro 

link Opportunity with task

trigger ClosedOpportunityTrigger on Opportunity (before insert,before update)
    for(Opportunity o:
     if(o.StageName=='Closed Won')
         Task t= new Task();
         t.Subject='Follow up Task';;
           insert t;

Hi Jakson ,

Are you facing any issue ?