Automatically generating stories

Hello all, this is my first post here - perhaps of many :slight_smile:

I am investigating whether Storyblok would be a good CMS to go with a headless Shopify store. So far I’ve found Storyblok to be great and easy to use!

What I’d like to do is couple the Shopify products and collections with the Storyblok CMS, so when I create/update/delete a product in Shopify it automatically creates a corresponding Story in Storyblok. Creating the product is easy enough, but for updating and deleting you need to know the Story ID. The only way I can think of is to store the Shopify product ID and the Story ID in a database and refer to that when deleting/updating. Is there a better way of doing this?

Hello Zach,

I think that should work.
You could also take a look at the possibility to save the Shopify id inside of the story as you can also use the filter_query parameter of the management API which works the same way as in the delivery API.
You can create a very simple custom field type plugin which doesn’t allow to modify the id so it would be read only from the editors side.