Skip to content

Instantly share code, notes, and snippets.

@pentium10
Created May 18, 2021 16:17
Show Gist options
  • Save pentium10/d66903397ee05b5ab78720b88a6ffa87 to your computer and use it in GitHub Desktop.
Save pentium10/d66903397ee05b5ab78720b88a6ffa87 to your computer and use it in GitHub Desktop.
BQ_Results_LoopItems:
params: [items]
steps:
- init:
assign:
- i: 0
- result: ""
- check_condition:
switch:
- condition: ${len(items) > i}
next: iterate
next: exit_loop
- iterate:
steps:
- process_item:
call: BQ_Task
args:
table_id: ${items[i].f[0].v}
result: result
- assign_loop:
assign:
- i: ${i+1}
next: check_condition
- exit_loop:
return: ${result}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment