Get pzInsKey of Link-Attachment object immediately after file attachment
I have a requirement to pass the pzInsKey of a just attached document to another activity.
I need either pzInsKey or the primary keys (pxLinkedRefFrom,pxCreateDateTime) of the Link-Attachment object; and not that of Data-WorkAttach-File.
The below OTB rule calls method 'Link-Objects' but doesn't return any handle for the linked attachment object created.
Activity: Activity to attach the generated PDF to a Work Object.
CL : Code-Pega-PDF
ID : AttachToWork
RS :Pega-ProcessEngine:07-10-25
I don't want to query the list of attachments for the given case (it doesn't help for our requirement). As soon as a file is attached, the LinkAttachment key should be passed on to other activities for post processing work.
Any suggestions would be helpful.
Thanks,
-Sri