Step 2. Import Definitions and demo entries.

Import Metafield definitions, Metaobject definitions and Metaobject entries.

Requirements

Step 1. Create a Private Admin App

  1. Go to the Shopify admin dashboard, navigate to Settings > Apps and sales channels > Develop Apps, and click on Create app.

  2. After naming and creating your app, move to the Configuration tab.

  3. In the “Admin API access scopes” section, click Edit and select the following scopes: read_apps, read_files, write_files, write_metaobject_definitions, read_metaobject_definitions, write_metaobjects, read_metaobjects, write_products, read_products, write_themes, read_themes

  4. Under Webhook subscriptions, choose the 2024-04 API version.

  5. Lastly, navigate to the API Credentials section.

    • Copy the Admin API access token and save it to a file for convenient use in the steps below

Step 2. Import Definitions and demo entries.

  1. You can deploy the Hydrogen application to Oxygen and import data there. However, my advice is to check everything on Localhost and deploy it to Oxygen as the final step.

  2. Check all environment variables have been set correctly and node_module has been installed.

  3. Open the terminal and run: "npm run dev"

  4. Go to http://localhost:3000/cisecoInitCreateMetaobjectDefinitions

  5. Enter the Admin API access token value above into the input box and perform data import.

  6. After importing, you need to manually enable the Storefronts access option in the admin page (Please check the video below for more clarity)

  7. Please follow the video below.

👉 Video Import definitions and demo entries.

Last updated