web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Sync Multiple Product Images from Business Central to Shopify via Metafields

(7) ShareShare
ReportReport
Posted on by 11,169 Super User 2026 Season 1

Hi everyone,

We’re using the Shopify Connector for Dynamics 365 Business Central to sync products between the two systems. Currently, the connector supports syncing a single image per product from BC to Shopify.

However, our client has a requirement to sync multiple images per product from Business Central to Shopify.

We are planning to add a custom table/field in the Item card to store multiple image URLs or media files. Now we’re looking for the best way to:

  • Extend the Shopify Connector or use an API call
  • Sync these additional images as Shopify metafields or gallery images

Has anyone done something similar?

Is it possible to push multiple images to Shopify using metafields via customization or event subscribers?

Any guidance, examples, or direction would be greatly appreciated!

 

Thanks in advance!

I have the same question (0)
  • Verified answer
    OussamaSabbouh Profile Picture
    13,012 Super User 2026 Season 1 on at
    Hello,
     
    To sync multiple images per product from Dynamics 365 Business Central (BC) to Shopify using the Shopify Connector, you can consider the following steps:
     
    Understand the Current Limitations: The Shopify Connector currently supports syncing a single image per product from Business Central to Shopify. To meet your client's requirement for multiple images, you will need to extend the functionality.
     
    Create a Custom Table/Field: Add a custom table or field in the Item card within Business Central to store multiple image URLs or media files. This will allow you to manage and reference multiple images for each product.
     
    Use Shopify Metafields: Shopify allows the use of metafields to store additional information about products, including multiple images. You can utilize these metafields to push the additional image URLs from Business Central.
     
    Implement Customization or Event Subscribers:
    - You can create a customization in Business Central that triggers when a product is synced to Shopify. This customization can read the custom field containing the multiple image URLs and then make an API call to Shopify to update the product with these images.
    - Alternatively, you can use event subscribers to listen for the product sync event and execute your logic to push the additional images.
     
    API Call to Shopify: To push the images to Shopify, you can use the Shopify API. Below is an example of how to make a cURL request to update a product with multiple images:
     
    curl -X PUT "https://{shop_name}.myshopify.com/admin/api/2023-01/products/{product_id}.json" \
    -H "X-Shopify-Access-Token: {access_token}" \
    -H "Content-Type: application/json" \
    -d '{
      "product": {
        "id": {product_id},
        "images": [
          {
            "src": "https://example.com/image1.jpg"
          },
          {
            "src": "https://example.com/image2.jpg"
          }
        ]
      }
    }'
    Replace
    {shop_name}
    ,
    {product_id}
    , and
    {access_token}
    with your actual Shopify store name, product ID, and access token respectively. This request will update the specified product with the new images.
  • Sohail Ahmed Profile Picture
    11,169 Super User 2026 Season 1 on at
    @OussamaSabbouh Thank you for your suggested solution. I do have one question: in Business Central, images are typically stored in Media or MediaSet fields (or sometimes BLOBs for older setups). In your solution, you're sharing a JSON with src: imageURL. How can we generate that image URL from a Media field in Business Central?
  • Suggested answer
    DAnny3211 Profile Picture
    11,417 Super User 2026 Season 1 on at

    Hello,

    Thank you for your question.

    The standard Shopify Connector for Dynamics 365 Business Central currently supports syncing only one image per product. To meet the requirement of syncing multiple images, a customization or extension of the connector is necessary.

    Recommended Approach:

    1. Custom Table for Image Management
      Your plan to add a custom table or field to store multiple image URLs or media files on the Item Card is a valid starting point. Ensure that each image is linked to the product with a unique identifier and stored in a format compatible with Shopify’s API.

    2. Extend the Connector via AL Code
      You can extend the Shopify Connector by subscribing to relevant events (e.g., OnBeforeSyncItem) and injecting logic to push additional images. This may involve:

      • Iterating through the custom image table.
      • Making HTTP requests to Shopify’s Product Images API or Metafields API.
    3. Use Shopify Admin API
      Shopify’s Admin API allows you to upload multiple images to a product. You can use the endpoint:

      POST /admin/api/2023-07/products/{product_id}/images.json
      

      Include the image URL or base64-encoded content in the payload. This can be done from Business Central using HttpClient.

    4. Metafields vs. Gallery Images
      While metafields are suitable for storing structured data, for actual product galleries, it is recommended to use the Product Images API. This ensures the images appear in the storefront gallery.

    5. Event Subscribers and Job Queue
      Consider using event subscribers or a job queue to automate the image sync process during product updates or scheduled intervals.

    6. Error Handling and Logging
      Implement robust error handling and logging to track failed uploads or API responses, especially when syncing large volumes of images.

    If this response helps resolve your issue, please consider marking it as accepted so it may assist others with similar requirements.

    Best regards.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,902 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 580 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans