Event in front end when a new attachment is added/deleted

Hi,

Is there a way to catch the events when an attachment is added or deleted in the form page through attachments section !! 

I want to catch those events in the front end.

Like 0

Like

1 comments

Hi Sagar Rodda,


I suggest you either create a business process with the signal start event to run the process automatically when a record added/deleted, or add the following handlers to the section form page:

  handlers: /**SCHEMA_HANDLERS*/[
   {
    request: "crt.UploadFileRequest",
    handler: async function(request, next) {
     /* Your customization will be here  */
     return next?.handle(request);
    }
   },
   {
    request: "crt.DeleteFileRequest",
    handler: async function(request, next) {
     /* Your customization will be here  */
     return next?.handle(request);
    }
   }
  ]/**SCHEMA_HANDLERS*/
Show all comments