Document event handling not working after contentservice.saveandpublish
So I have a document event handler: Document_BeforeSave, I want to trigger the event whenever I update a document in code.
So at one page i have this:
ContentService.SaveAndPublish(Item);
But it doesn't trigger the event. Whenever I save and publish in the backoffice, it triggers though. SaveAndPublish has a third parameter to trigger events and it's default is on True so I don't know what the problem is. Has anyone else encountered this problem?
Document event handling not working after contentservice.saveandpublish
So I have a document event handler: Document_BeforeSave, I want to trigger the event whenever I update a document in code.
So at one page i have this:
ContentService.SaveAndPublish(Item);
But it doesn't trigger the event. Whenever I save and publish in the backoffice, it triggers though. SaveAndPublish has a third parameter to trigger events and it's default is on True so I don't know what the problem is. Has anyone else encountered this problem?
is working on a reply...