Shopify Flow - Orders to Google Sheet Variable Question

Hello All!

Currently have Flow setup to trigger on order, and to add orders to a spreadsheet if line item is part of a specific collection. Here are the Variables Comma Separated -

{{order.createdAt}},{{order.name}},{{order.customer.firstName}},{{order.customer.lastName}},{{order.email}},{% for lineItems_item in order.lineItems %}{{lineItems_item.name}}{% endfor %},{% for lineItems_item in order.lineItems %}{{lineItems_item.quantity}}{% endfor %}

My issue - If a customer orders multiple line items it combines them all into a single row. I would much prefer it add them as 2 rows, I’m just not good enough with the variables and how it should be listed. Any help would be appreciated!

How it looks -

JRice1_0-1712341172817.png

How I’d like it to look -

One step even better is if it could also show which line item on the order it is -

Try iterating over the line items on the order and then doing the create row action within that iterator.