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
Naresh.TNaresh.T 

Calling Apex code from Work Flow

    Hi,

Is it possible to call Apex code When a work flow is triggered?

Any help would be very much appreciated.

Thanks in advance.

Naresh.T


jpizzalajpizzala
Is there an advantage to doing this as opposed to just creating an apex trigger to fire on the action that fires the workflow in the first place ( i.e. after insert , after update, etc. ) ?
Naresh.TNaresh.T

In the work flow we are using the time based triggers.

So once the time based trigger fires we want to do some set of operations.But using work flow we can create a task,send an email,update a field or send an outbound message.

So we want to keep the set of opeations in the Apex code and want to call it from the Work flow.

Thanks,

Naresh.T



Message Edited by Naresh.T on 02-06-2008 09:36 AM
ciccic
Only way to currently do this is to pick up the change in the data in an after update trigger.  Pretty easy to do and only a slight cludge.  Just add a "Workflow Triggered" checkbox if no other change to database can be done or detected uniquely. 
 
To do it directly is a requested item on IdeaExchange so go and vote for it.....