Using: EPiServer.CMS version=11.12.0
Programatically creating a Block in sub-folder whose parent has an Approval Sequence does not generate the Notification emails, is this a bug?
This works: Manually adding Block in blocks folder with inherited Approval Sequence:
- Create Block
- Creates 1 record in the [tblNotificationSubscription] table
- e.g. projects://notification/21234/
- Publish the content set it to Ready for Review
- Creates 2 records in the [tblNotificationSubscription] table
- approvals://notification/17/
- projects://notification/21235/
- Creates 1 record in the [tblNotificationMessage] table
- Creates 2 records in the [tblNotificationSubscription] table
- Run the Notification Dispatcher service – sends email to relevant person
- Creates 1 record in the [tblNotificationSubscription] table
This does not create the Notifications: Programmatically creating a Block and adding to folder with inherited Approval Sequence is as below. The problem here is that the Notification email is never generated in the [tblNotificationMessage] table:
- Create Block with code below sets the Block to Ready for Review
_contentRepository.Save(contentBlock, SaveAction.RequestApproval, AccessLevel.NoAccess);
- Creates 1 record in the [tblNotificationSubscription] table
- e.g. approvals://notification/19/
- Note: There is no projects:// entry added
- No records are added to the [tblNotificationMessage] table
So when I programatically add the Block that is in a Approval Sequence he NOtifications are generted = no emails sent to the relevant modertators.
Is this a bug?