function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Triggering Workflow Alerts and Tasks with Apex


Is possible to trigger a workflow alert and/or task using Apex?


Message Edited by MsKnight on 03-13-2008 04:14 PM
Ron HessRon Hess
Yes, i think so.

you can create a task, with reminder set to TRUE and due date to
that should popup a reminder box for the owner of the task record.

for workflow, you can move records thru workflow using Apex, but to be of any real help, i'll need to understand what your requirements are in more detail.
Hi Ron,

I already have workflow alerts and tasks built in Salesforce and I want to call them with Apex code. Is this possible?

For example:
When an Opportunity Stage changes, call:

An email alert to a manager
A task to an assistant

Is it possible to track all my sales reps "TASK" in calendar view. I know that calendar view is to track events.

Generally i want to see how my sales reps are engaged in terms of there task in Salesforce calendar.