You need to sign in to do that
Don't have an account?
SFDC n12
Task creation on contact in apex help
Hi ,
I want to create a task with the following info in my batch class , Please let me know how to do it
•Create a Task on the Contact with the following info -
1. Subject = 'Bounceback Correction'
2. Due Date = Today + 5
3. Your assignment = 'Please update the email address for this Contact.'
4. Owner = AE
5. CreatedBy = Set it as test(user)
6. Comment = 'The bounced email subject = ' + IndividualEmailResult.Subject
Thanks in Advance
I want to create a task with the following info in my batch class , Please let me know how to do it
•Create a Task on the Contact with the following info -
1. Subject = 'Bounceback Correction'
2. Due Date = Today + 5
3. Your assignment = 'Please update the email address for this Contact.'
4. Owner = AE
5. CreatedBy = Set it as test(user)
6. Comment = 'The bounced email subject = ' + IndividualEmailResult.Subject
Thanks in Advance
Sample Trigger above
Hope this helps
can i use the following below
List<Task> tasks = new List<Task>();
tasks.add(new Task(
Due Date = Date.today()+5,
Subject='Bounceback Correction',
//WhatId = a.Id,
OwnerId = UserInfo.getUserId(),
Status='In Progress'));
insert tasks;