Forum Discussion
sravankunadi
3 years agoNew Contributor II
Thank you @AleksandarAngelevski
I could achieve whatever i need it, but for the below scenario
So, if we there is no response with entity.success == false , you can just map the nextPageToken from the latest response from the group (the array), by using $group.pop().entity.nextPageToken
.
I would like to extract the complete payload and not just one latest response. Is there a way we could get all the records if there is no response with entity.success==false and load the data to target systems
Appreciate your help on this.
Aleksandar_A
3 years agoContributor III
Yes, just split the group using a JSON Splitter instead of using Mapper with $group.pop().entity.nextPageToken
after the Router for that route (entity.success == false).
BR,
Aleksandar.