Prevent worklfows from looping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    Prevent worklfows from looping

    Hi,
    I have 4 workflows, each of them are triggered by a change in a field and all 4 are correlated. These workflows basically calculate prices with/without VAT and unit prices (example of one of these workflows: https://gyazo.com/5497d18a1d9f4bc2d1f966375f6d01d3) And I want to make it so if I enter a unit price without VAT it would trigger a workflow that calculates the other 3 prices an so on. The problem is with the conditions, the best I could think of is triggering the workflow when that field is changed, but the problem is that the workflow itself changes the other 3 fields and these changes trigger the other workflows. Any suggestions how to check or make this operation not loop would be appreciated.
  • vinybarreto
    Member
    • Feb 2020
    • 30

    #2
    i have the same problem, i want that the trigger just work 1 time in the lead, but by system pattern, the triggers aways work creating the same activity a lot of times

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hello,
      it is always better to provide your workflows settings screenshots to let community investigate them and give you suggestions.
      Mark, you don't need to create a lot of separated Actions in Workflow. To Update Target Record you can include them into one Action.

      Comment

      • vinybarreto
        Member
        • Feb 2020
        • 30

        #4
        Follow a print of the workflow config

        Comment

        • yuri
          Member
          • Mar 2014
          • 8453

          #5
          You can try to add a formula condition:

          Code:
          modifiedById != 'system'
          I didn't test. Just an idea.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8453

            #6
            Note, That a workflow can't trigger self directly. There's a mechanism preventing such a looping. But one workflow can trigger another, then another workflow can trigger the first one.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            Working...