We love salesforce Notifications. Anyway, it would be great if there would be a way to bulk generate notifications and be able to send them thru code.
Actually, you can only send notifications in APEX with the following method:
Messaging.CustomNotification notification = new Messaging.CustomNotification();
Anyway, we are expecting a similar functionality like the one salesforce provides for emails:
List<Messaging.SingleEmailMessage> emailsToSend = new List<Messaging.SingleEmailMessage>();
Bulk sending notifications is required for those cases where the recipients needs to be calculated thru some custom logic and we don't want to consume one DML operation each time the notification is generated.