BeyondERP.Newsletter
Menu

Setup step on the Product images page · Retail and Commerce

Define the product image media template

Let Store Commerce find externally hosted product images from one URL pattern.

See how to set it up Back to Retail and Commerce

Used by
Retail catalog manager, Retail merchandising manager, Retail store manager
Business process
Create retail product categories in Dynamics 365 Commerce
Menu item
RetailProductImage
Main table
RetailImageResource
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Product image shows in Store Commerce”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA gallery page for product image references, where the media template that builds the URLs of externally hosted product images for Store Commerce is defined and overridden.
What you do hereUse this page to define the media template for the Products entity (path, file extension, number of images per product and default image), generate the derived image URLs for Excel, and overwrite them for individual products.
ExampleFor example, give each product five images named after the product number and set the first one as the default image shown in Store Commerce.
Product images page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Setup steps on this page

Define the product image media template

Let Store Commerce find externally hosted product images from one URL pattern.

Steps from Microsoft

  1. Go to Retail and Commerce > Products and categories > Product images.
  2. On the Action Pane, select Define media template; the Entity field shows Products.
  3. On the Media path FastTab, enter the remaining path of the image location below the media base URL.
  4. In the File Extension field, select the expected file name extension.
  5. Select OK.
  6. Select Define media template again and use Generate Image URLs for Excel to check the derived URLs.
  7. Run the Catalog job (1150) from Retail and Commerce IT > Distribution schedule.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
EntityThe entity the media template applies to; Products on this page.Microsoft Learn
Media pathThe part of the image URL after the channel profile's media base URL; may include a LanguageID token.Microsoft Learn
File ExtensionThe file name extension of the image files.Microsoft Learn
Generate Image URLs for ExcelPreviews the URLs derived from the saved template; required before Edit in Excel.Microsoft Learn
Edit in ExcelOpens the image URLs in Excel so that they can be edited, added or removed per product.Microsoft Learn

Common errors and fixes

MessageWhat to do
Images don't show in Store CommerceOnly publicly and anonymously accessible images render on POS. Check the Media base URL in the channel profile and the media template, then run the Catalog job (1150). Microsoft Learn

Test checklist

  1. Check that the store's channel profile has a Media base URL.
  2. On Product images, select Define media template, set the media path, file extension and number of images per product, and select the default image.
  3. On Generate Image URLs for Excel, select Generate and check a URL opens the image (file name based on the product number).
  4. Run the Catalog job (1150) from Distribution schedule.
  5. Open Store Commerce for the store and check the product image is shown.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Define the product image media templateMedia base URL on the channel profile, one media template for products with the number of images per product and a default image.Store Commerce builds each image URL from the base URL and the template; the file name is based on the product number.Where should product images be hosted?Changing the template without selecting Generate before Edit in Excel.Test: Product image shows in Store Commerce

Feature management and licence

Licence or add-inIn this system 3 roles can open this page, among them Retail catalog manager, Retail merchandising manager and Retail store manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyThe media template is set per entity (Products); the first part of every image URL comes from the Media base URL of the channel profile. Microsoft Learn
Can it be undoneReversible: Change the template and run the Catalog job (1150) again.
If you change it laterAny change to the product media template takes effect in stores only after the Catalog job (1150) is run; overwritten product URLs are shown together with the template URLs. Microsoft Learn
Technical architect

6Technical

Menu itemRetailProductImage Checked in Dynamics 365
FormRetailMediaGallery Checked in Dynamics 365
TableRetailImageResourceShown as “RETAILIMAGERESOURCE” in Record infoChecked in Dynamics 365
Who can open it

3 security roles. Select a role to see its duties and privileges.

  • RoleRetail catalog managerRetailCatalogManager
    • DutyMaintain media management security.RetailMediaMaintain
      • PrivilegeMaintain media management security.RetailMediaMaintain
  • RoleRetail merchandising managerRetailMerchandisingManager
    • DutyMaintain media management security.RetailMediaMaintain
      • PrivilegeMaintain media management security.RetailMediaMaintain
  • RoleRetail store managerRetailStoreManager
    • DutyMaintain media management security.RetailMediaMaintain
      • PrivilegeMaintain media management security.RetailMediaMaintain
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itRetail store manager RetailStoreManagerRetail merchandising manager RetailMerchandisingManagerRetail catalog manager RetailCatalogManagerGive people one of these roles. On this system, 3 roles can open this page.Checked in Dynamics 365
Actions on the page(Action Pane without tabs): Define media template, View referencesChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=RetailProductImage
Data migrationLoad order: Product images has no data entity in Data management, so it can't be loaded from a file or a configuration template. Image URLs are built from the media template; overwrite single URLs with Edit in Excel from this page (Generate first) and run the Catalog job (1150).Microsoft Learn
Table definitionRetailImageResource columns and relations Microsoft data model
Everyone

8Sources

To cite this step: RC-PRD-040, Define the product image media template. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/RC-PRD-040