Hey everyone ... I need some help in figuring out the best way to send an Inbox notification from a custom workflow method. The idea is that that the cutom workflow method will perform business logic validations and if it fails it goes to a another activity in the workflow and the user receives an Inbox notification of all the packages that did not meet the conditions. The workflow has more than one package.
Things I have tried
IDfSysObject.queue() - I normally use this method for all notifications but it does not help in this case as it is always associated with one object and in this case I just want to send the notification and not have any objects associated with it. I have tinkered with the idea of a dummy sysobject but want to look for better options out there.
session.sendToDistributionListEx - This came closest to what I was looking for. I could associate multiple objects but could not figure out how to modify the subject of the notification. The subject in Inbox always shows the first document I associated with this ad-hoc workflow.
I have not tried IDfWorkflow.queue() yet and might do it later. Any idea what this method does ??
So my question is there a way to send a notification to a user through DFC without worrying about associating objects. The notification does need to include a subject and message. I have not done much with custom email templates etc ... so not sure if that is the direction I need to go.
Thanks in advance for all your help.