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
MigMig 

Workflow can not trigger workflow ... and Apex trigger update can it trigger workflow ?

I know that's it's not possible to trigger a worklow by a field update done by another workflow. 

My question is : If My fiest workflow updates a record that will fire my apex trigger and this apex trigger fires a worlfow. Do you think this will work ?

 

If not, do you know if it's possible to enable this functionnality ?

http://ideas.salesforce.com/article/show/10093883/Allow_workflow_or_approval_process_to_trigger_workflow

 ( a guy here says that he thinks it's possible, how can I do it ? )

 

Thanks a lot for all your answers.

 

Cheers,

Mig 

 

Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf

Apex can trigger workflow on a different object if you touch it.  So let's say you change a Case which fires a before update Case trigger which updates a Contact -- workflow on that Contact will fire.

 

Or you can use an @future to trigger workflow on the case asynchronously (but shortly after the transaction has completed).  Here's an example of @future in action:

 

http://blogs.salesforce.com/support/2009/01/allowing-custom.html

All Answers

werewolfwerewolf

Apex can trigger workflow on a different object if you touch it.  So let's say you change a Case which fires a before update Case trigger which updates a Contact -- workflow on that Contact will fire.

 

Or you can use an @future to trigger workflow on the case asynchronously (but shortly after the transaction has completed).  Here's an example of @future in action:

 

http://blogs.salesforce.com/support/2009/01/allowing-custom.html

This was selected as the best answer
MigMig

great. Thanks for your answer and for the @future notaion ... 

Cheers,

Mig 

Amal DominicAmal Dominic
I have come across a nice workflow and a document management tool, it is called Ultra Documents. It is very simple and easy to use; you can get setup and start a workflow in minutes. Ultra Documents comes with Document Management, document merging, Workflow process, Custom Forms, Electronic signature & various applications, the nice thing is it has a free version with all features available to you. Give it a try.