• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Recipe Building Applications Questions
S

Saul Macht

started a topic over 5 years ago
Answered

Shopify: Update Product Inventory Levels

Hi,


We control our inventory in salesforce, so I am trying to update the inventory value of a product in Shopify from the corresponding value of the corresponding product (which corresponds to a custom object named "Item") in Salesforce.


I'm new to Shopify and Workato and am trying to understand how to update inventory levels in shopify.


I'm getting a 404 error when I search for a product handle and then try and update the inventory of the corresponding product.


The handle exists, but I expect it might be attached to the "parent" product rather than the default variant. 



Best Answer
A
Amanda Wong said over 5 years ago

The Shopify product should have been created with a default variant. You can use "Update product variant" action to update the inventory quantity. Please ensure you use the correct ID pill to update product variant -- take note to map Product Variant ID instead of the Product ID. It should work once you map the correct ID pill. 


To understand how to map data pills to field correctly, you would need to understand how the fields correspond to the app data. 


You can create a simple recipe with a trigger or search action to retrieve a particular record for testing. Take a look at the trigger/search output in the Job Report to understand more about the data being passed over from Shopify to Workato to help you check that you are mapping the correct data pills to the data fields in your recipe. Hope this helps!


Answer

Amanda Wong

said over 5 years ago

The Shopify product should have been created with a default variant. You can use "Update product variant" action to update the inventory quantity. Please ensure you use the correct ID pill to update product variant -- take note to map Product Variant ID instead of the Product ID. It should work once you map the correct ID pill. 


To understand how to map data pills to field correctly, you would need to understand how the fields correspond to the app data. 


You can create a simple recipe with a trigger or search action to retrieve a particular record for testing. Take a look at the trigger/search output in the Job Report to understand more about the data being passed over from Shopify to Workato to help you check that you are mapping the correct data pills to the data fields in your recipe. Hope this helps!


Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count