To output the delimiter except on the last item you could replace ## with:
{% if forloop.last %}{% else %}##{% endif %}
You might also be able to write, but I haven’t tested:
{% unless forloop.last %}##{% endunless %}
Main Issue:
Users want to export Shopify order line items to Google Sheets via Flow for dropship fulfillment, with each line item as a separate row (rather than Flow’s default one-row-per-order behavior).
Current Workaround:
Common Problems & Solutions:
{% unless forloop.last %}##{% endunless %} in Flow| replace: ',', '' filter in Flow to remove commas from fieldsonEdit trigger for automatic execution when Flow adds rows remains problematic for some usersRecent Development:
Flow now supports “For Each” loops, allowing users to call the Sheets action for each line item directly without custom scripting—a simpler alternative to the delimiter method.
Status: Discussion remains open with ongoing troubleshooting questions about script implementation and Flow-to-Sheets connectivity.
To output the delimiter except on the last item you could replace ## with:
{% if forloop.last %}{% else %}##{% endif %}
You might also be able to write, but I haven’t tested:
{% unless forloop.last %}##{% endunless %}