Skip to main content
Question

Variable assignment in Pipelines

  • February 26, 2021
  • 0 replies
  • 424 views

Forum|alt.badge.img+4
Does anyone have experience with assigning a variable in Pipelines and changing it throughout the pipeline.

Basically, I want to assign a variable at the start of the 'for' loop and then increment it by 1 for each part of the loop.  Has anyone done this?

------------------------------
Jessica Feauto
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
No,  but I'm working with Quickbase support hoping that they will engage a senior person to work with me on this similar Pipelines issue here.  In will post back there if I find a solution.


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------

Jessica,
I have not tried to do this exact variable (increment by 1) but you may be able to use the 'loop.index' variable to add the increment in each loop as this will increment by 1 each time through.  I'm not sure if the syntax is correct but you could try something like {% set Variable = {"value" : "[your variable] + loop.index"} %} inside the 'for' loop.  Then to user the variable is just {{Variable.value}}...  I have used similar to set a field from an outer loop as a variable that can then be used in each inner loop to get child data for each parent record in a single request body.
Cheers,

------------------------------
Roger Dartnell
------------------------------