How to convert to a function

Hi @gbond

It would help if you could describe what this flow does. Right now you are asking us to import your flow, then reverse engineer what it does without any information.

When it comes to sharing flows, please also read this post about how to format them properly: How to share code or flow json