younifyd
Menu

metaobject

Retrieves a single Metaobject by its global ID. Metaobjects store custom structured data based on defined schemas.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the metaobject action (under Metaobject).
  3. Fill in the fields below, then reference the result from later steps as {{metaobject.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Metaobject($id: ID!) {
  metaobject(id: $id) {
    capabilities {
      onlineStore {
        templateSuffix
      }
      publishable {
        status
      }
    }
    createdAt
    createdBy {
      apiKey
      appStoreAppUrl
      appStoreDeveloperUrl
      availableAccessScopes {
        description
        handle
      }
      banner {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      description
      developerName
      developerType
      developerUrl
      embedded
      failedRequirements {
        action
        message
      }
      features
      feedback {
        app
        channel
        feedbackGeneratedAt
        link
        messages
        state
      }
      handle
      icon {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      id
      installUrl
      installation {
        accessScopes
        activeSubscriptions
        app
        channel
        id
        launchUrl
        publication
        subscriptions
        uninstallUrl
      }
      isPostPurchaseAppInUse
      launchUrl
      navigationItems {
        id
        title
        url
      }
      optionalAccessScopes {
        description
        handle
      }
      previouslyInstalled
      pricingDetails
      pricingDetailsSummary
      privacyPolicyUrl
      publicCategory
      published
      requestedAccessScopes {
        description
        handle
      }
      screenshots {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      shopifyDeveloped
      title
      uninstallMessage
      uninstallUrl
      webhookApiVersion
    }
    createdByApp {
      apiKey
      appStoreAppUrl
      appStoreDeveloperUrl
      availableAccessScopes {
        description
        handle
      }
      banner {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      description
      developerName
      developerType
      developerUrl
      embedded
      failedRequirements {
        action
        message
      }
      features
      feedback {
        app
        channel
        feedbackGeneratedAt
        link
        messages
        state
      }
      handle
      icon {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      id
      installUrl
      installation {
        accessScopes
        activeSubscriptions
        app
        channel
        id
        launchUrl
        publication
        subscriptions
        uninstallUrl
      }
      isPostPurchaseAppInUse
      launchUrl
      navigationItems {
        id
        title
        url
      }
      optionalAccessScopes {
        description
        handle
      }
      previouslyInstalled
      pricingDetails
      pricingDetailsSummary
      privacyPolicyUrl
      publicCategory
      published
      requestedAccessScopes {
        description
        handle
      }
      screenshots {
        altText
        height
        id
        originalSrc
        src
        thumbhash
        width
      }
      shopifyDeveloped
      title
      uninstallMessage
      uninstallUrl
      webhookApiVersion
    }
    createdByStaff {
      accountType
      active
      email
      exists
      firstName
      id
      initials
      isShopOwner
      lastName
      locale
      name
      phone
      privateData {
        accountSettingsUrl
        createdAt
        permissions
      }
    }
    definition {
      access {
        admin
        customerAccount
        storefront
      }
      capabilities {
        onlineStore
        publishable
        renderable
        translatable
      }
      createdAt
      createdByApp {
        apiKey
        appStoreAppUrl
        appStoreDeveloperUrl
        availableAccessScopes
        banner
        description
        developerName
        developerType
        developerUrl
        embedded
        failedRequirements
        features
        feedback
        handle
        icon
        id
        installUrl
        installation
        isPostPurchaseAppInUse
        launchUrl
        navigationItems
        optionalAccessScopes
        previouslyInstalled
        pricingDetails
        pricingDetailsSummary
        privacyPolicyUrl
        publicCategory
        published
        requestedAccessScopes
        screenshots
        shopifyDeveloped
        title
        uninstallMessage
        uninstallUrl
        webhookApiVersion
      }
      createdByStaff {
        accountType
        active
        email
        exists
        firstName
        id
        initials
        isShopOwner
        lastName
        locale
        name
        phone
        privateData
      }
      description
      displayNameKey
      fieldDefinitions {
        capabilities
        description
        key
        name
        required
        type
        validations
      }
      hasThumbnailField
      id
      metaobjectsCount
      name
      standardTemplate {
        access
        description
        displayNameKey
        enabledCapabilities
        fieldDefinitions
        name
        type
      }
      type
      updatedAt
    }
    displayName
    fields {
      definition {
        capabilities
        description
        key
        name
        required
        type
        validations
      }
      jsonValue
      key
      reference
      thumbnail {
        file
        hex
      }
      type
      value
    }
    handle
    id
    staffMember {
      accountType
      active
      email
      exists
      firstName
      id
      initials
      isShopOwner
      lastName
      locale
      name
      phone
      privateData {
        accountSettingsUrl
        createdAt
        permissions
      }
    }
    thumbnailField {
      definition {
        capabilities
        description
        key
        name
        required
        type
        validations
      }
      jsonValue
      key
      reference
      thumbnail {
        file
        hex
      }
      type
      value
    }
    type
    updatedAt
    values
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the metaobject to return.

json
{
  "id": "string"
}

Response

Read the result with {{metaobject.response.data.data.metaobject}}. If the API returns errors, the step fails and they are at {{metaobject.response.data.errors}}.

capabilitiesobject
onlineStoreobject1 fields
publishableobject1 fields
createdAtstring
createdByobject
apiKeystring
appStoreAppUrlstring
appStoreDeveloperUrlstring
availableAccessScopesarray<object>
bannerobject7 fields
descriptionstring
developerNamestring
developerTypestring

One ofSHOPIFYPARTNERMERCHANTUNKNOWN

developerUrlstring
embeddedboolean
failedRequirementsarray<object>
featuresarray<object>
feedbackobject6 fields
handlestring
iconobject7 fields
idstring
installUrlstring
installationobject9 fields
isPostPurchaseAppInUseboolean
launchUrlstring
navigationItemsarray<object>
optionalAccessScopesarray<object>
previouslyInstalledboolean
pricingDetailsstring
pricingDetailsSummarystring
privacyPolicyUrlstring
publicCategorystring

One ofPRIVATEPUBLICCUSTOMOTHER

publishedboolean
requestedAccessScopesarray<object>
screenshotsarray<object>
shopifyDevelopedboolean
titlestring
uninstallMessagestring
uninstallUrlstring
webhookApiVersionstring
createdByAppobject
apiKeystring
appStoreAppUrlstring
appStoreDeveloperUrlstring
availableAccessScopesarray<object>
bannerobject7 fields
descriptionstring
developerNamestring
developerTypestring

One ofSHOPIFYPARTNERMERCHANTUNKNOWN

developerUrlstring
embeddedboolean
failedRequirementsarray<object>
featuresarray<object>
feedbackobject6 fields
handlestring
iconobject7 fields
idstring
installUrlstring
installationobject9 fields
isPostPurchaseAppInUseboolean
launchUrlstring
navigationItemsarray<object>
optionalAccessScopesarray<object>
previouslyInstalledboolean
pricingDetailsstring
pricingDetailsSummarystring
privacyPolicyUrlstring
publicCategorystring

One ofPRIVATEPUBLICCUSTOMOTHER

publishedboolean
requestedAccessScopesarray<object>
screenshotsarray<object>
shopifyDevelopedboolean
titlestring
uninstallMessagestring
uninstallUrlstring
webhookApiVersionstring
createdByStaffobject
accountTypestring

One ofREGULARRESTRICTEDINVITEDREQUESTEDCOLLABORATORCOLLABORATOR_TEAM_MEMBERSAMLINVITED_STORE_OWNER

activeboolean
emailstring
existsboolean
firstNamestring
idstring
initialsarray<object>
isShopOwnerboolean
lastNamestring
localestring
namestring
phonestring
privateDataobject3 fields
definitionobject
accessobject3 fields
capabilitiesobject4 fields
createdAtstring
createdByAppobject35 fields
createdByStaffobject13 fields
descriptionstring
displayNameKeystring
fieldDefinitionsarray<object>
hasThumbnailFieldboolean
idstring
metaobjectsCountnumber
namestring
standardTemplateobject7 fields
typestring
updatedAtstring
displayNamestring
fieldsarray<object>
definitionobject
jsonValueobject
keyobject
referenceobject
thumbnailobject
typeobject
valueobject
handlestring
idstring
staffMemberobject
accountTypestring

One ofREGULARRESTRICTEDINVITEDREQUESTEDCOLLABORATORCOLLABORATOR_TEAM_MEMBERSAMLINVITED_STORE_OWNER

activeboolean
emailstring
existsboolean
firstNamestring
idstring
initialsarray<object>
isShopOwnerboolean
lastNamestring
localestring
namestring
phonestring
privateDataobject3 fields
thumbnailFieldobject
definitionobject7 fields
jsonValuestring
keystring
referenceobject40 fields

This field can return one of several different object shapes — properties from every possible shape are shown together.

thumbnailobject2 fields
typestring
valuestring
typestring
updatedAtstring
valuesstring

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

metaobject — Shopify — Documentation