• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

  • Due to Holi celebrations, our team will have limited availability. While we’ll continue to monitor threads, responses may be slightly delayed. Normal operations will resume on Thursday, 5th March 2026.

find the biggest number from all results

Status
Not open for further replies.
P

Pabblymember11

Guest
Hey @elhanan cohen

Can you please share the workflow URL in which you are trying the same to get the latest record number?
 
P

Pabblymember11

Guest
Please check your third step we have added a JS code action step to get the latest record, I hope this might help you out.
 
Thanks! working!
const jsonData =
[All records]

// Extracting the "counter" values from the JSON data and finding the largest number
const largestCounter = jsonData.reduce((max, item) => {
const counter = item.fields["counter"];
return counter > max ? counter : max;
}, -Infinity);

console.log("The largest number in the 'counter' field is:", largestCounter);
 
Status
Not open for further replies.
Top