Skip to main content
10 events
when toggle format what by license comment
Jul 12, 2016 at 12:33 comment added Pranav Chikodi Create a Public group, query Group Members in Trigger List<GroupMember> groupMemebers = [SELECT Id, Group.Id,Group.Name, UserOrGroupId, SystemModstamp FROM GroupMember where Group.Name =<Public Group Name>]; Assign task owner Id Task t = new Task(); t.OwnerID = groupMemebers[0].UserOrGroupId; Create an Email Template Hi {!Opportunity.OwnerFullName}, Your task has been completed. Here are the details Subject : {!Task.Subject} Status : {!Task.Status} Priority : {!Task.Priority} Create a Workflow Rule on Task with appropriate rule criteria Add Email Alert action
Jul 12, 2016 at 11:20 comment added Devi Hi Pranav , for the above requirement is there any possible to add the logic from above trigger? If possible please provide us the logic. Thanks
Jul 11, 2016 at 13:34 comment added Devi Hi chikodi pranav, Thank you very much Your code is working fine.. But hear one problem after creating the task.We need to assign that particular task to one of the Group member. after completion the task, completion mail should be getting opportunity Manager like. Hello XXX, Your Task has been Completed. Here are the details - Subject : Test Status : Completed Priority : Low Can you please help us that would be great for us. Thanks in Advance
Jul 11, 2016 at 13:18 history edited Pranav Chikodi CC BY-SA 3.0
added 207 characters in body
Jul 11, 2016 at 13:11 comment added Adrian Larson Please edit your post with any new information. Comments are not the appropriate way to add it.
Jul 11, 2016 at 13:10 comment added Pranav Chikodi Trigger.isInsert trigger context is used to check whether Trigger was fired due to Insert operation, in that case we want to create Task. Trigger.isUpdate trigger context is used during Update operation, get Old map from Trigger context check if Description(or any other field) got change, then create Task
Jul 11, 2016 at 13:06 comment added Adrian Larson Please add some descriptions. Code dumps are not really an answer per se, and not very useful.
Jul 11, 2016 at 13:05 history edited Adrian Larson CC BY-SA 3.0
added 120 characters in body
Jul 11, 2016 at 12:42 review First posts
Jul 11, 2016 at 13:06
Jul 11, 2016 at 12:37 history answered Pranav Chikodi CC BY-SA 3.0