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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Create theme based/copied on/from AW theme, looking for search-result-container-v2 module

(1) ShareShare
ReportReport
Posted on by
I would like to create my own custom /Adventure works/ theme to be able to modify React code, definitions and styles without other concepts (overrides, presets, ...).
 
First I tried to inherit from the existing Adventure works theme by referencing the existing definition:
 
File: custom-adventureworks.definition.json{
    /$ref/: /@msdyn365-commerce-theme/adventureworks-theme-kit/dist/lib/modules/adventureworks/adventureworks.definition.json/,
    /$type/: /themeModule/,
    /friendlyName/: /My custom Adventure works/,
    /name/: /custom-adventureworks/,
    /description/: /This is my custom adventure works theme./
}
 
Doing so it looks like the corresponding stylesheet custom-adventureworks.theme.scss is not used. I tried just to import the original adventureworks styles
<at>import '<at>msdyn365-commerce-theme/adventureworks-theme-kit/dist/lib/modules/adventureworks/styles/adventureworks-base.theme.scss';
 
And added some additional styles. But it looks like the core adventureworks styles are used.

Another approach I tried is to copy the whole <at>msdyn365-commerce-theme/adventureworks-theme-kit/dist/lib/modules/adventureworks folder into my custom folder (more-less base on https://community.dynamics.com/forums/thread/details/?threadid=dbdd635d-5775-40b2-a15e-411246c71898)
While starting the application I get the following error:
-- Unable to find parent definition file for file /src/themes/custom-adventureworks/definition-extensions/search-result-container-v2.definition.ext.json
-- Error: Unable to find parent definition file for file /src/themes/custom-adventureworks/definition-extensions/search-result-container-v2.definition.ext.json
  at mergeExtendedDefinitionFile (/node_modules/@msdyn365-commerce/definition-generator-internal/src/utils/helpers.js:133:15)
  at ModuleDefinitionGenerator.isValidJsonFile (/node_modules/@msdyn365-commerce/definition-generator-internal/src/module-definition-generator.js:152:31)
  at ModuleDefinitionGenerator.start (/node_modules/@msdyn365-commerce/definition-generator-internal/src/module-definition-generator.js:119:25)
  at runDefinitionGenerator (/node_modules/@msdyn365-commerce/definition-generator-internal/src/utils/helpers.js:53:46)
-- Error processing extended definition file /src/themes/custom-adventureworks/definition-extensions/search-result-container-v2.definition.ext.json.
-- Please check to make sure parent definition exists, the extended definition is the right type and does not override parent properties.
 
I looked into the NPM packages but there is no module /search-result-container-v2/.
 
Using NPM version 9.46.17 of https://github.com/microsoft/Msdyn365.Commerce.Online
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 95 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 63 Super User 2026 Season 1

#3
Sagar Suman Profile Picture

Sagar Suman 56 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans