• harika
  • NEWBIE
  • 5 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi, is there a way to retrieve all the opportunities which are submitted for Approval process either way through Apex Code or UI , wanted a report of it.
  • August 27, 2009
  • Like
  • 0

I have a function to programmatically create tasks:

 

    public static ID createTask(SObject taskObject, String subject, String priority,
                                String description, ID assignedToId) {
        Task theTask = new Task();
        theTask.WhatId = taskObject.Id;
        theTask.Subject = subject;
        theTask.Priority = priority;
        theTask.Description = description;
        theTask.OwnerId = assignedToId;
        insert theTask;
        return theTask.Id;
    }

 

How do I also create a companion email that is sent immediately similar to the behavior of the 'Send Notification Email' checkbox on the new task UI page?

 

Thanks!


Dave

 

  • May 27, 2010
  • Like
  • 0
Hi, is there a way to retrieve all the opportunities which are submitted for Approval process either way through Apex Code or UI , wanted a report of it.
  • August 27, 2009
  • Like
  • 0