Get latest date from a node that outputs multiple items

Describe the issue/error/question

I am getting youtube videos from an account. Require the Batches for an operation involving notion (removed from here for brevity) which doesn’t play nice with multiple items.

Desired result:

  • I would like to be able to use the Function node at the end (set to true on final batch item) to output the publishedAt latest date from YouTube (i.e. so that I have the final video date)

What is the best way of achieving this?

Please share the workflow

Hey @pb84,

What about something like this?

1 Like

Wow what a lovely solution

1 Like

I am sure there are other ways that is just the first option I thought of.

1 Like