Discussions

 View Only
  • 1.  Writing conditional logic on Pipelines trigger on new event step

    Posted 05-16-2022 11:30
    I'm a little puzzled with Pipelines' On New Event trigger.  I see that there is a trigger option for On Add Record, On Modify Record and On Delete Record.  They can all be set to trigger on the same On New Event step.  

    What I don't get here is how do I follow up on each event in the step that follows this initial trigger?  What I mean is, how do I differentiate whether I'm going to Create Record next, if the initial trigger is On Add Record.  Or how do I write a step to follow thereafter to Delete Record if the trigger is On Delete Record?  Lastly, how would I write an Update Record step if the initial trigger is On Modify Record?

    I don't see that there's a step by step way to identify what happened in the first trigger and tell the Pipeline to follow up and either Create, Update or Delete Record.  It doesn't make sense to me why this option is grouped into the trigger for all three triggers when it seems like you can only use one trigger for the entire Pipeline.  That or I'm missing something that's key here.  Otherwise, I would just need to write three separate Pipelines to handle each separate trigger based on Add, Modify or Delete.

    ------------------------------
    AR
    ------------------------------


  • 2.  RE: Writing conditional logic on Pipelines trigger on new event step

    Posted 05-16-2022 11:46
    The On Event is meant to be used when the same steps are triggered when the Event happens.  if Delete should cause different steps, then that should be a separate pipeline.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Writing conditional logic on Pipelines trigger on new event step

    Posted 05-16-2022 11:55
    So it's meant to be used for one step only? If another step like On Modify Record is triggered, that should have a separate Pipeline? Thanks!

    ------------------------------
    AR
    ------------------------------



  • 4.  RE: Writing conditional logic on Pipelines trigger on new event step
    Best Answer

    Posted 05-16-2022 11:57
    Yes, if there were three different sets of steps for Add vs Modify vs Delete the there would be three different Pipelines.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------