I’m trying to use Flow to create shipping labels for a service i use. Shipping label need the orders products with specific values.
I can use For each loop, item in order.lineitems to get these values. Tested with log output.
But, how do i inject this when using HTTP POST in the xml?
This is my log output for loop
<name>{{lineItemsForeachitem.sku}}</name><quantity>{{lineItemsForeachitem.quantity}}</quantity><weight>{{lineItemsForeachitem.contract.originOrder.totalWeight}}</weight><length>0</length><width>0</width><height>0</height><description>{{lineItemsForeachitem.title}}</description><unit_price>
I want to inject product(s) HERE
<OrderSpecification><shipping_product_id>84</shipping_product_id><reference>{{order.name}}</reference><commodities><commodity> INJECT HERE </commodity></commodities><parcels><parcel></parcel></parcels><address_to><street_address_1>{{order.shippingAddress.address1}}</street_address_1><postal_code>{{order.shippingAddress.zip}}</postal_code><residential>1</residential></address_to><recipient><name_to>{{order.shippingAddress.name}}</name_to><mobile_to>{{order.shippingAddress.phone | replace: "+46", "0"}}</mobile_to><email_to>{% for fulfillmentOrders_item in order.fulfillmentOrders %} {{fulfillmentOrders_item.destination.email}} {% endfor %}</email_to></recipient><booking></booking></OrderSpecification>