1. Whenever a Task is created, set the Priority to High.

Solution:
trigger TaskTrigger on Task (before insert) {
      if(Trigger.isInsert && Trigger.isBefore) {
         for (Task taskRecord : Trigger.NEW) {
                taskRecord.Priority= ‘High’;
         }
      }
 }

Want to Apply As Content Writer?

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart

Let's get you started!

Interested in writing Salesforce Content?

Fill in this form and we will get in touch with you :)