ITERATOR: how to select most recent response by data

Status: Closed · Asked by Tobia D'Odorico on · 0 views

dodosport — Question ·
Task History ID: test

Good morning,

I'm creating a workflow regarding my loyalty program: I want to send the datas of a fidelity card if the owner asks for them.

I'm facing an issue at the step when I ask with a API call to retrive all records of a fidelity card to my CRM.
The response is set on SIMPLE RESPONSE and it's the list of the records from the date of creation of the fidelity card.

Now I created a step with ITERATOR to separate datas received and it works.
But now I want to select only the 3 most recent records (ordered by data) how can I do that?

Thanks if someone could help me.

Tobia

Deleted member 15445 — Reply ·

Hey @dodosport

It appears that the API step will extract all the cards and it is not possible to stop the iterator in between the execution only for 3 cards.

Kindly check the API doc, for the application that you are using, if it has an endpoint where you can specify a number of latest cards to fetch.

Let us know if it works for you.

Back to all forum threads · Log in to reply