Sort/Reverse Order of Array

Status: Closed · Asked by ACG Pabbly on · 0 views

acg — Question ·

How do I sort or reverse the order of an array before using the Pabbly Iterator?

I have an array that is a chat conversation. It is sent to Pabbly via webhook ordered newest --> oldest, but I need to reverse the order to oldest --> newest and then iterate.

As a reference, I previously did this in Integromat using the reverse(array[]) command, but I can't figure out how to do it in Pabbly.

Pabbly — Reply ·

You can use Array function for that as shown below -

acg — Reply ·

Thanks! Once it is reversed, it seems that the iterator is no longer able to find it. How do I aggregate the the entire result as text for a future step?

Pabblymember11 — Reply ·

Hey @acg

We have checked the function again and it is working accordingly. You might be confusing because Iterator only shows single line item data at a time in the workflow though while execution it will take all the entities one by one.

Sample Screenshot -

Back to all forum threads · Log in to reply