I am struggling with creating a custom promotion plugin and I am new with Sitecore XC. I would like to create custom condition/qualification and action which should work as expected. All I want is that my condition should appear on below dialog and work.

enter image description here

I have followed below articles to do so



I am receiving a common error as below while following the above articles. It seems it could be one of the reason. And, my commerce engine stops responding due to this error. could be one of the culprits.

enter image description here.

It would be really grateful if anyone can help me to resolve this and ready to do screen sharing discussion if required.

  • Make sure that you are referencing a correct version of Microsoft.OData.Edm dll Jan 23, 2019 at 9:03
  • Which one is the recommended version to use? Currently, I am using 7.5.3
    – cbrebel
    Jan 23, 2019 at 9:11
  • It depends on XC update version. Which version are you using? Jan 23, 2019 at 9:51
  • Sitecore XC 9 update 2
    – cbrebel
    Jan 23, 2019 at 10:01
  • Microsoft.OData.Core and Microsoft.OData.Edm should be Jan 23, 2019 at 10:04

1 Answer 1


In the tutorial (https://horizontalintegration.blog/2018/10/09/sitecore-9-commerce-custom-promotion-condition/), a crucial step is missing. Your assembly has to be registered in the ConfigureSitecore.cs of your plugin to the rules engine before it is visible in the dropdown:

services.Sitecore().Rules(rules => rules.Registry(reg => reg.RegisterThisAssembly()));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.