Forum Discussion

MarkShnier__You's avatar
MarkShnier__You
Icon for Qrew Legend rankQrew Legend
5 years ago

Pipeline "for each" loops

I must be missing a basic concept with Pipelines.
My goal is to Search (retrieve) records from a table.  Then for each record, do three steps in sequence.
1. Update a record 
2. Call an API Webhook #1. (API_RunImport#ID=10)
3. Call an API Webhook #2. (API_RunImport#ID=11)


The search work fine and returns 5 records ( I set that as a limit for testing).

But then it gets into the For Each loop and does that first Update step #1 5 times in a row, and then starts into the API calls.

How do I get it to do the three steps in that sequence.

ie
update record with Search results #1.
call Webhook
call webhook.

Then update records with Search Result #2.
call Webhook
call webhook.

etc for 5 loops.


 


​​​​​

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------

22 Replies

  • Are all 3 steps (B, C, & D) nested under step A?

    If so, I agree that they should loop in order as you stated.

    Can you post a pic of the high-level view (all steps collapsed) of the Pipeline?

    ------------------------------
    Sharon Faust (QuickBaseJunkie.com)
    Founder, Quick Base Junkie
    https://quickbasejunkie.com
    ------------------------------