Try our conversational search powered by Generative AI!

Possible to "execute backend code" when business users create/save Promotions?


Hi, is there any kind of hook, or event generated, when our business users create/save Promotions in the CMS? 

I'd like to react by hitting a WebAPI, or calling a stored procedure with some data about the new promotion.

Jan 10, 2017 23:38

By "In the CMS", I suppose you are using the new promotion system?

If that's the case then they are basically IContent, so you can listen to IContentEvents and check if the content is PromotionData or not before further processing.

If you are using the old promotion system (handling by Commerce manager) then there is no easy way to do that.


Jan 11, 2017 7:26

Thanks Quan, that worked very nicely!

Jan 11, 2017 16:28
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.