• 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.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

  • Due to Diwali and Bhai Dooj celebrations, our team will have limited availability. While we’ll continue to monitor threads, responses may be slightly delayed. Normal operations will resume on Friday, 24th October 2025.

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