Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

in workspace, i want to activate option Delete all to attachment

EvilRojo
Tera Expert

EvilRojo_0-1777326433617.png

Im in yokohama version, i want to add a option to "delete all" behind the option "download all" in workspace, anyone knows how can activate it?

I read that in my version, i can activate the option

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@EvilRojo 

out of the box this is not possible

You can work on some custom solution

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

How?

@EvilRojo 

I am not UI builder expert.

but you need to find the attachment UI builder component and then make a copy of that and add that logic

https://instanceName.service-now.com/now/builder/ui/edit/pc/728ec88c43fa2110f20fff53e9b8f278/0bd6c17843b47110cc25ff53e9b8f288/4bd685bc43b47110cc25ff53e9b8f27c

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

shubhamseth
Giga Sage

@EvilRojo  This is not available OOB. However, you can achieve with some customisation. 

I have followed the below approach earlier to download all attachment when it was not there on workspace earlier - 

 

1. Create the UI Action “Delete All Attachment” and enable for workspace view 

2. write custom logic to refer the current record and get all the attachment from sys_attachment table so that way you will get all the attachments for that record 

3. Write logic in the same script to delete the retrieved file from the table. Make sure you are checking it properly before taking up the delete action that if has pulled only required attachment associated to that record. 

please note the user who is trying to perform the delete operation should have required access to delete. 

see if this works for you. 

similar type of approach we tried to download all the attachment in Zip folder earlier when it was not there from servicenow OOB. 

let me know if it works for you. 

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain