Forum Discussion

MikeTamoush's avatar
MikeTamoush
Qrew Commander
3 years ago

Pipeline new event - modify or deleted

If I want the following to happen:

Record A is modified, then modify Record B.
Record A is deleted, then delete record B.

Will this have to be done in 2 pipelines, or any way to do it in one?

------------------------------
Mike Tamoush
------------------------------

4 Replies

  • I think you can do this with one pipeline using an If condition. If A does not exist, delete B. Else, update B

    ------------------------------
    Matt Hardy
    ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander
      So trigger would be on modify or delete.
      Then the first step would be to search for the record in A?
      Then the if else?

      ------------------------------
      Mike Tamoush
      ------------------------------
      • MattHardy's avatar
        MattHardy
        Qrew Trainee
        That's correct for the first step but I'll need more details for the second.

        Are records A and B related? If so, you can "Look Up a Record" rather than search. Otherwise, yes you'll have to search for record B.

        Then branch with an If (A does not exist), delete record B
        Else, update record B

        ------------------------------
        Matt Hardy
        ------------------------------