Activity Forums Salesforce® Discussions How to set Task Reminder Date/Time using apex in Salesforce?

  • Marziya

    Member
    December 30, 2019 at 2:02 pm

    When creating a recurring task using Apex, how I can set the reminder to get the same functionality as what UI offers?

     

    The Task object has only a "ReminderDateTime"!

     

    Task t = new Task();

    t.Subject = 'Test';

    t.IsReminderSet = true;

    t.RecurrenceType = 'RecursEveryWeekday';

    t.RecurrenceDayOfWeekMask = 62;

    t.ReminderDateTime = ??

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos