Re: Workflow: automated continued selling of products that are ordered at supplier

Workflow: automated continued selling of products that are ordered at supplier

RikGroenland
Tourist
4 0 1

Hi everyone,


I'm currently working on a rather complex (for me) Shopify Flow.
The gist of the idea is that we want to continue selling out of stock products on our webshop when a purchase trough our fulfillment software is done. So stock is on its way to our warehouse in a few days and can be ordered trough our shop with the right delivery date added to our shops date picker.

We are currently working on a webhook that sends data from our fulfillment software to Shopify and adds this to several metafields.

One of the things I run into now that I want to change the 'productVariant.inventoryPolicy' to be set to CONTINUE based on a check. But I can't seem to find an action that does this? I can only find it in a check.
Another thing I'd like to know is how a date in a metafield can be updated to be X days above a current date metafield.
At last, I'm looking for a way to add this incoming inventory to an inventory spot (so we don't over-sell our incoming inventory).

Long story short:

  1. Based on a trigger we want to set inventoryPolicy:continue on a product variant.
  2. Based on date input being mutated in a metafield called variant.metafields.purchasing.delivery_date we would want this to update a metafield called variant.metafields.datepicker.available_from with that date + 2 days.
  3. Based on a numeric input coming from the webhook into variant.metafields.purchasing.amount_to_receive we need some kind of way to add this incoming inventory to an inventory spot (so we don't over-sell our incoming inventory).
Hope this helps understanding the challenge a bit more! Feel free to ask questions about the setup.

 

Replies 7 (7)

Tomas_Baena
Shopify Staff
6 2 3

Hey @RikGroenland,

Currently, there is no Flow action available to update the inventory policy on a variant, or a Flow trigger for recognizing an update made to a metafield. Flow wouldn't be suited to solve this use case at the moment unfortunately.

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

RikGroenland
Tourist
4 0 1

Hi Tomas, 

That is unfortunate. How does the roadmap for Flow look like? Seems to me like an oversight to be able to check a condition but not being able to alter it in an automation app?

paul_n
Shopify Staff
1336 151 306

You can set the policy by calling the API with Flow's Send HTTP Request task.

 

As for the roadmap, getting a value and setting it are totally different development efforts. Flow effectively gives you access to all of the data, but not yet all of the actions. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
RikGroenland
Tourist
4 0 1

Thanks for the update. Is it on the roadmap to be able to adjust these inventorypolicy variables as an action?

paul_n
Shopify Staff
1336 151 306

I don't have a date yet on when we'll have that particular API covered.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

Kalen_Jordan
Shopify Partner
743 34 129

Hopefully appropriate to post here since this isn't possible with Flow.

 

We have a 3rd party automation app called mesa that should be able to handle this. This is a recent workflow I built to update inventory policy:

https://www.getmesa.com/blog/shopify-product-variant-inventory-policy-demo/

 

And we should be able to trigger on a metafield update by triggering on product updated.

RikGroenland
Tourist
4 0 1

There's always 'an app for that' 😉
This does look promising for our usecase. Do you have an overview somewhere as to which actions/triggers are possible to configure as opposed to Shopify Flow?