OOTB EPM-notify or EPM-notify-signoffs or EPM-notify-report, will create the envelope with the subject(object_name) given in the argument value and the user will end up seeing several envelops with the same name in the mailbox.
To change this behavior, I am planning to write a custom handler to create an Envelop with the dynamic subject (taking the values from target object's item_id and rev id)and attach the workflow targets as the contents.
I could achieve the envelop creation with the dynamic subject. Now I am looking for some help to attach the targets as Envelop content.
Please help if there are any ITK calls for this.
Thanks a lot!
An Envelope is a type of Folder, so you should be able to add to its contents in the same manner.
Look at FL_insert, and FL_insert_instances.
where the folder_tag is your Envelope.