Zoho Flow - Using Custom Functions to create a Product List

I was just watching Jordan´s video on “Essential Tips for Overcoming Common Challenges in Zoho Flow”. Great video. Thank you so much! I have a challenge I believe is a very common one when creating module entries via Zoho Flow. I would appreciate it to get some guidance from the community.

I have an object named “Line Itens” with a list of itens in a Woocommerce Order. I know I need to create a Custom Function to loop through the items and create a list before adding to Ordered Itens Subform in CRM Sales Order Module entry. However, I am not so sure how to use Custom Function in Zoho Flow for this case. I would appreciate it some help if possible.

Thank you.