Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Will an 'update field' workflow task trigger workflows on the related record?
#1
I think I've asked this before, but somewhere in a thread that I can't find anymore. So here's twice then:

If I create a workflow task that updates a field on a related module, will that update in turn trigger the workflow system on the record to which that related field belongs?
Reply
#2
Apparently, it does not. I tried the following setup: A Timecontrol record updates a field on a related projecttask, then a projecttask updates a field on the parent project. Both are set to fire always, when creating a new record and editing an existing one. Saving the timecontrol record however does not update the parent project for the projecttask related to that timecontrol record.
Reply
#3
I'd say it doesn't and your second post seems to confirm that. I think that is on purpose to minimize the potential of infinite loops
Joe
TSolucio
Reply
#4
Yes, that would seem risky. I've now setup the 'middle' record to do a scheduled task, think that will do it. Maybe I'll investigate this further if I have some time.
Reply
#5
I see workflow tasks have a 'Launch workflows on related updates' checkbox now, so now we can choose this behaviour at will? That would be awesome!
Reply
#6
Yes, correct! That is what it is for.
Joe
TSolucio
Reply
#7
So we should be very careful when we do this, because if I trigger a task on an invoice that also triggers the workflow mechanism on a related salesorder, but that related salesorder has a task that updates a field on invoices and also triggers workflows on related reocrds, I could create an infinite loop.
Reply
#8
Absolutely. You HAVE to know what you are doing, and even then, it can get messy, but the feature was required for some use cases.
Joe
TSolucio
Reply
#9
I very much like the feature but as you said, even if you know what you are doing it could go horribly wrong. Especially if you have many workflows you can loose track of.
Reply
#10
Reading this over again, when we do end up in an infinite loop, is there some way we could kill the process?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)