I tried looking at this: loop-for-pentaho-where-i-redefine-a-variable-on-each-execution, but it's not exactly what I need.
I am using an API to grab results, but I can only grab 100 records at a time. No big deal, I can set the "after" query parameter.
What I need to do is something like this:
- Start
- Run transformation that Runs API Initially and grabs the last ID value
- Run Transformation again but set the "after" query parameter based on the variable in the previous run.
- If the variable is NULL then move to the next part of the job, if it's not, loop through and run part 3 again.
Any suggestions?
Figured out how to do this. There might be a better way to do this, but this worked for me.
Here is how I accomplished this: