Metafields
Metafields are extra, hidden data in each objects or in your shopfront that informs you more about the object itself without revealing them. Some common example of using Metafields may be syncing Products fro Shopify to their Accounting systems, while others may want to track the performance or popularity of each product. A common way of editing metafields directly in Shopify itself is by using a Metafield Editor.
Metafields can be attached to the following objects:
A metafield has a common structure of having :-
1. A namespace
A Namespace aids you in grouping various metafields in a more generic, superset relationships among selected metafields. This helps in distinguishes the types of metafields used and in what ways.
2. A key
A Key contains the name or label of the specific metafield. A good way of thinking about it is understanding it as an identifier.
3. A value
Self-evidently, the value is the actual value of the metafield itself.
4. A description. This may be optional
An optional field for you to better describe your metafield
Actions available in Workato that interact with Metafields are :
Additions
Add metafield to objects
Supported objects : Product, Customer, Order, Product Variant. You may also toggle it to use your own object name.
Add metafield to Shop
Retrievals
Given an ID of the object, you will be able to retrieve a list item of metafields as its App Data output.
Get Object metafields
Get store metafields
Updates
The update actions requires an ID to modify its value.
Update object metafield
update store metafield