Fulfill orders that only have a certain item unfulfilled

dvmati
Shopify Partner
3 0 0

Hello everyone,

I am working on a workflow to manage orders(older and future) that are partially fulfilled. The goal is to identify orders where only one specific item remains unfulfilled. If this is the case, the order will be marked as fulfilled.

I am struggling to single out this specific item while also checking the status of the order line items in the order.
Here is what I have so far and where I am stuck :

dvmati_0-1715782374766.png

Any help is greatly appreciated.

Replies 3 (3)

Jeff-Armstrong
Shopify Staff
33 3 1

Something like below should get you all the orders that only have a specific product unfulfilled.

JeffArmstrong_0-1715796501037.png

 

The problem is that there is no action to mark an order fulfilled. You can mark Fulfillment Orders as fulfilled. Do you have existing unfulfilled Fulfillment Orders that contain the specific product in question?

To learn more visit the Shopify Help Center or the Community Blog.

dvmati
Shopify Partner
3 0 0

"Do you have existing unfulfilled Fulfillment Orders that contain the specific product in question?" - Yes and there will also be orders created that will be marked as Partially fulfilled because of this particular item.

I ended up doing this after spending more time reading about Flow:

dvmati_2-1715800924693.png

 

However, I am still trying to figure out how this "for each" works before turning my workflow. After doing "do this for each item", will this only return the fulfillments that have every item fulfilled except my searched item? Also, If I realize this will work only for future orders(hopefully), but is there a way to change this to modify certain orders from the past?

 

Jeff-Armstrong
Shopify Staff
33 3 1

The steps that follow the "do this for each item" port will be executed for every item in the list being looped over in the "For Each" step.
Steps that follow the "then" port will be executed after the steps for every item have been processed.

The equivalent in psuedocode would be:

 

for each item in list:

    # do this for each item
    step 1
    step 2
    ...
    step N

end for

# then
more steps...



You can find more details on "For Each" here.

To learn more visit the Shopify Help Center or the Community Blog.