How to define Logic hook alongside Advance Workflow?

Hello,

let's assume, that I want to create Logic Hook and Advanced Workflow without timer. 

Advanced Workflow (Process definition):

  • will run on Leads New records only
  • criteria is Lead source equals "Newsletter"
  • and result will be, that this Lead will have changed status to value "Back to System"

Logic Hook:

  • will run on Lead before save event
  • will find list of Leads, which are duplicates and not in status "Back to System"

I want to achieve, that my Logic hook will run always after any Advanced Workflow defined like above to prevent trigger the hook for Leads suiting Advanced Workflow criteria.

Should I change event to after save or should I change order of my logic hook to certain number? I don't know...

Thx,
Mariyo

  • If I remember correctly, the Advanced Workflow order number is 100, but it is an after_save event.

  • Advanced Workflow runs at order 100 in the after_save event, so if you write your logic hook to run at order number 101 or higher and make it an after_save hook you should be good to go.

    Robert Gonzalez

    Senior Director, Engineering

    Sugar Sell, Sugar Serve, Sugar Mobile