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 Commented Jan 23, 2019 at 9:03
  • Which one is the recommended version to use? Currently, I am using 7.5.3
    – cbrebel
    Commented Jan 23, 2019 at 9:11
  • It depends on XC update version. Which version are you using? Commented Jan 23, 2019 at 9:51
  • Sitecore XC 9 update 2
    – cbrebel
    Commented Jan 23, 2019 at 10:01
  • Microsoft.OData.Core and Microsoft.OData.Edm should be Commented 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 you have read our privacy policy.

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