Understanding the EVAL function in StoreAutomator
In this article, we will explain the intricacies of the EVAL function in StoreAutomator. The EVAL function evaluates formulas for specific custom fields. StoreAutomator has 2 types of custom fields:
- Standard Custom Fields
Standard Custom Fields can be used after values have been assigned for specific SKUs. If you add values, these attributes remain empty.
You can learn more about how to create a standard custom field here: How to create a custom field
- Dynamic Custom Fields
May be used in formulas. You can use more than one source or you can combine standard custom field values as an output of the dynamic custom field.
A. Standard Custom field’s value is X
B. Standard Custom field’s value is Y
C. Dynamic Custom Field output can be X, Y based on your formula.
To use the EVAL Function, the prefix “eval:” into the Default Value bar of the relevant custom field. This signifies to StoreAutomator that a formula needs to be evaluated to produce the desired output.
Follow these steps to use the EVAL function:
- Navigate to to Inventory> Custom Fields
- Use the search bar to find the custom field name
- Click Edit
- Enter eval:
- Compose your formula. Refer to our syntax from guide here:
6- Click Save and Close.
Your formula will be evaluated for each SKU wherever you use this custom field in StoreAutomator.