Forum Discussion

SteveWishengrad's avatar
SteveWishengrad
Qrew Member
5 years ago

Pipeline Looping without a Search Query

Hi,

Is there a way to loop within Pipelines without doing a search query? I would like to create the equivalent of a For/Next loop that increments based on a value that I provide. I'm trying to create records for a recurring event and I want to create one event between a Start Date and an End Date based on adding Days or Weeks or Months, etc. to the Starting date.

I know I can code this with JavaScript, but I thought I would give pipelines a try. I can't find a looping mechanism. Even a Goto a previous step option would work.

Thanks for any suggestions.
Steve.

------------------------------
Steve Wishengrad
------------------------------
  • Hi Steve,

    The templating language Pipelines uses is Jinja. There is a mechanism that supports looping. 

    Give it a try yourself and if you still cannot built what you need, get back in touch with me. We'd need more specifics, an example of what exactly you'd like to achieve.

    Let me know how it goes,
    Thanks,

    Stasha



    ------------------------------
    Stanislava Markovska
    ------------------------------