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

Vote:
 

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.

#173847
Jan 10, 2017 23:38
Vote:
 

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.

/Q

#173849
Jan 11, 2017 7:26
Vote:
 

Thanks Quan, that worked very nicely!

#173877
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.