Developer forum

Forum » Development » Saving without triggering notification

Saving without triggering notification

Marco Santos
Reply

Hello.

Is there a way to save an order without triggering the OrderAfterSave notification? We have a ashx that will be used to update order information from an external source, but we also use a Order Save notification to update information in the external source. For the cases where the save is initiated in the ashx I would rather have it not communicating the update to the external system.

Is this possible?

Regards,

Marco Santos


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Marco,

It is indeed possible. You need to use the NotificationContext object to do that. Check the API documentation for more information: http://developer.dynamicweb-cms.com/api8/#Dynamicweb~Dynamicweb.Extensibility.NotificationContext.html

- Jeppe

Votes for this answer: 1
 
Marco Santos
Reply

 

You must be logged in to post in the forum