Skip to content
FlexiPedia logo

Shopify Native Actions - Meta Fields Actions

Discover how Flexito OmniAI simplifies managing your Shopify store's metafields, allowing you to create, update, retrieve, search, and delete them with ease. Enhance your store's data organisation and streamline operations effortlessly. In this section, we'll explore the actions

Flexito OmniAI
Beginnerv4
Read in:

Listen to an audio overview

A short, AI-generated podcast-style summary of this article.

Discover how Flexito OmniAI simplifies managing your Shopify store's metafields, allowing you to create, update, retrieve, search, and delete them with ease. Enhance your store's data organisation and streamline operations effortlessly.

In this section, we'll explore the actions related to "Meta Fields". Flexito OmniAI supports the following customer-related actions:

  • Create Meta Field

  • Update Meta Field

  • Get Meta Field Information

  • Search Meta Fields

  • Delete Meta Field

Let's examine each of these actions in detail.

Creating a Metafield

Use this action to create a metafield for various resources such as customers, draft orders, orders, products, and more.

Input Details

Response Payload Details

{
"metafield": {
"id": ,
"namespace": "test metafield",
"key": "test_1",
"value": "test",
"value_type": "string",
"description": "This is a test metafield",
"owner_id": ,
"created_at": "T05:19:02-04:00",
"updated_at": "T05:19:02-04:00",
"owner_resource": "draft_order",
"type": "single_line_text_field",
"admin_graphql_api_id": "gid://shopify/Metafield/"
}
}

Updating a Metafield

This action allows you to update an existing metafield.

Input Details

Resource Payload Details

{
"metafield": {
"value": "test1",
"value_type": "string",
"owner_id": ,
"namespace": "test metafield",
"key": "test_1",
"id": ,
"description": "This is a test metafield",
"created_at": "T05:19:02-04:00",
"updated_at": "T05:43:48-04:00",
"owner_resource": "draft_order",
"type": "single_line_text_field",
"admin_graphql_api_id": "gid://shopify/Metafield/"
}
}

Retrieving Metafield Information

This action helps you obtain information about a specific metafield using its metafield and resource IDs.

Input Details

Response Payload Details

{
"metafield": {
"id": ,
"namespace": "test metafield",
"key": "test_1",
"value": "test1",
"description": "This is a test metafield",
"owner_id": ,
"owner_resource": "draft_order",
"type": "single_line_text_field"
}
}

Searching Metafields

Use this action to find metafields linked to a specific resource.

Input Details

Response Payload Details

{
"metafields": [
{
"id": ,
"namespace": "test metafield",
"key": "test_1",
"value": "test1",
"description": "This is a test metafield",
"owner_id": ,
"owner_resource": "draft_order",
"type": "single_line_text_field"
}
]
}

Deleting Metafields

This action enables you to delete metafields using their metafield ID and resource ID.

Input Details

Response Payload Details

[
]