How to call Plugin after attaching file to case

How to call Plugin after attaching file to case

Post by U2FnYX » Thu, 25 Jun 2009 01:29:01



Hi,

How can I call Plugin after attaching a file to case without saving that
case? When I attach a file to case, I want to call a plugin that will update
the fields in table for that case id for an attachment. Plugin should get
called before saving that case and update fields in table. If file is
attached to that case, then it will update the fields in table.

Thanks.
 
 
 

How to call Plugin after attaching file to case

Post by Mark Koval » Thu, 25 Jun 2009 03:35:05

The file attachment is an annotation entity that is related to your
case.

You want your plug-in to trigger from an annotation creation event
which is completely separate from the case(incident)

You will need to verify that the related record is a case before
continuing with the rest of your logic.




On Tue, 23 Jun 2009 09:29:01 -0700, Sagar

 
 
 

How to call Plugin after attaching file to case

Post by Tanguy TOU » Thu, 25 Jun 2009 20:15:05


Maybe you could call the plugin on entity "annotation" and event "update"
(and maybe "create"). Attaching a file resumes to create a note and update
it with document data and metadata.

--
Tanguy T
My blog : http://www.yqcomputer.com/

"Sagar" < XXXX@XXXXX.COM > a crit dans le message de groupe
de discussion : XXXX@XXXXX.COM ...