In the Arigato Automation app, sometimes you want workflows to run only once per item in your Shopify store, like once per product, variant, etc. This tutorial will show you how to use a condition check Database values to accomplish this.
Note that the app also has the option to trigger a batch workflow On Demand. Using the batch on demand option, you can simply set up your batch and run it one time. Depending on your situation, you may want to use the batch option or this one.
In the Arigato app, create a new workflow. I will create an example workflow that runs on "Product Created and Updated". You can use any trigger you'd like for this tutorial.
Next, we need to make sure that this workflow only runs once per Shopify item.
Add a new condition and have it check for a Database value. Since this workflow is dealing with products, I will use product database storage values.
When selected, it will prompt you with a key/value pair to test against. The key will be the name of this specific storage element for this product, and the value will be what the condition checks for.
Set the condition to test if the value is empty.
Now that we have our Conditions completed, we need to create Actions. Your Actions can be anything you'd like. Just be sure to create one Action to set the database value we're checking for in the Conditions section.
The value can be anything, it just needs to be something so that the condition will not pass a second time.
Click save workflow at the end and test as desired.
After clicking the Save button at the bottom, you can click into the test center to test if your Conditions are passing and if the database value gets changed.
After you are finished testing go back to the workflow and click resume to start running.
Now you have a workflow that only runs once per Shopify item in your store!