Replicating the Manage Attachments Pop-up UI Action

Volente_
Kilo Expert

Hi SN Community, 

I had a business requirement to be able to forward attachments on a record (custom built application) to another system. Due to this alternate system's set up, SN had to send the attachments in the form of an email to this system, lets call it System X. 

The general design flow to achieve this requirement was: 

find_real_file.png

I created a UI Action to place a button on the form called "X Forward". The UI action script performs some auto-set functions on the form and also triggers an event, which then triggers a notification to be sent. The notification has the include attachments box selected. The button works perfectly, but I have recently received an enhancement request asking to have the ability to select which attachments get forwarded vs everything on the record.

What I would like to do (if possible) is to mimic the functionality of the attachment UI action when the X Forward Button is clicked: 

find_real_file.png

I am trying to leverage the UI page "Attachments" (did an insert and stay) and use of GlideDialogWindow within a function, running in the UI Action, but not quite getting it to work. I would appreciate any advice on whether I am on the right track or any alternate suggestions/solutions. Thanks in advance! 

6 REPLIES 6

Anubhav Ritolia
Kilo Contributor

Hi Volente,

 

Can you please let me know how did you customized this Attachment pop-up as we have  requirement where we need to create custom Attachment popup.

Community Alums
Not applicable
Hello Volente,
 
Did you get solution for your requirement. please let me know. i have a similar requirement. Thanks