Trying to go through Shipment Processing Workflow but i'm stuck at step 1.
It seems that the node used is now legacy and i don't know how to implement it with the new one.
Here's a screenshot of what is expected:
Hi @xan, I just tried that api request in postman, and weirdly enough I get a 500 internal server error about 50% of the time, but other times I do get a result that matches what we'd expect to see in the example. I will ask around to see what we can do about that.
Hey @xan in terms of your initial question, you are correct the loop block in the exercise is outdated. To achieve this, a function would be the better alternative.
You can create a single step function that takes the param pageNum and uses the REST API query:
Back in the main Workflow, You can use the code from the exercise in a javascript code block and reference the function, passing indexVal as the parameter for pageNum:
@Mike_M & @bowe thanks for your reply.
So yes even if the behaviour of the api seems weird it’s what it is expected because it’s introduce the concept of how to handle error in the lab.
My question was more about the loop block that changed since the lab was made.
I had the chance to speak with Chris Riley who is working on updating the lab to match with the new loop.
Thanks again for taking the time and for the insights!
Hi everyone, Currently working an updated Lab using Single-Step function for paginated API call and Loop / Multi-step function for processing the output. Will be published on Monday next week.