Get metaobject entry

You can use the Get metaobject entry action to retrieve a single entry for a metaobject from your store, identified by its handle. See the metaobjects documentation for more information.

Configuration

Fields

The Get metaobject entry action contains a dropdown for specifying the metaobject definition as well as a field for specifying the handle of the specific entry.

Returned data

To access the returned data in steps that follow this action, use the variable named Get metaobject entry, which returns the fields and values for the entry. You can use this variable in both conditions and actions. For example, you can send the key-value pairs for all the fields in the metaobject entry in a Send internal email action like this:

{% for fields_item in getMetaobjectEntry.system.fields %}
  {{fields_item.key}}:{{fields_item.value}}
{% endfor %}

Triggers

You can use this action in any workflow, including the Scheduled time trigger. In a workflow that uses the Scheduled time trigger, the workflow starts at a time that you've specified, rather than as a result of an event. Because there is no specific event in your store or from an app that starts the workflow, there is no data automatically included.

API details

Can’t find the answers you’re looking for? We’re here to help.