Forum Discussion
Aleksandar_A
3 years agoContributor III
Hi @sravankunadi,
You can try using Group By N Snap with Group Size set to 0 to collect all of the records in an array.
Next, you can use the following expression in a Mapper Snap to get the nextPageToken from the last record where success == true.
$group[$group.findIndex(x => x.entity.success == false) - 1].entity.nextPageToken
.
Let me know if this helps you.
BR,
Aleksandar.