I’m getting stuck with the JS code. Basically I’m getting single line of order from WooCommerce, counting the quantity of products for this line and creating number of rows in Google Sheets that equals the quantity.
In order to do this I’ve created Code block that should return line items that can be used later to create Google Sheet record.
My code is here:
The test runs gives such output :
However in following step - creating Google Sheets record - I’m not getting Line item support:
only separete lines. So runnig this zap will create only one row in Google Sheet.
What am I doing wrong?
@Marcin! Hmm, you’re right, it looks like the line items have been made correctly given the output of the code step. I wonder if anyone who has experience with code steps is able to help here, maybe @ikbelkirasan?