Create Salesforce Task with Reminder using Apex Class

For this post describes about the create Salesforce Task with Reminder option using Apex Class:

While perform the DML option, to pass IsReminderSet as TRUE and pass the ReminderDateTime value and below are the example for your reference:

Task newTask = new Task(Description = 'Task With Reminder',
Priority = 'Normal',
Status = 'Inbound Email',
Subject = 'Other',
IsReminderSet = true,
ReminderDateTime =
insert newTask;

also if you like to pass Related To values for WHOID and WHATID, ASSIGNEDTO

WHOID to accept the LEAD and CONTACT ID’s

WHATID to accept the all other standard and custom object (but make sure to enable Allow Activities in Object level)

ASSIGNEDTO to accept the User/Queues id

Written by 

3x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published.