DOWNLOAD A IMAGE/FILE

hibye
Giga Contributor

I ATTACH A IMAGE TO INCIDENT

Capture111.PNG

AND I CREATED A BUTTON ON INCIDENT TABLE

Capture33.PNG

I WANT TO DOWNLOAD THAT IMAGE ATTACHED ON INCIDENT TABLE WHEN I CLICK "DOWNLOAD" BUTTON.

How??

6 REPLIES 6

saprem_d
Giga Guru

Hello,



Please refer below url to achieve this functionality



https://www.servicenowguru.com/scripting/download-attachments-zip-file/


Jace Benson
Mega Sage

I have a really hard time spending time on the community with posts like this;


1.   Question in all caps.


2.   It's not clear what you've tried to get this to work.


3.   It's not clear what you are really expecting, in this case, would a link to the first attachment be okay, or if there are more than one attachment what would you expect to happen?


4.   It does seem like this question wasn't thought out.



Please try to ask "Good" questions, good in that they are likely to start a conversation or progress to an answer.


When I need to ask a question, I try to read this, How do I ask a good question? - Help Center - Stack Overflow , then I proceed to type out my question.


It's suggestions to make a short list are;


  • Write a title that summarized the specific problem (pretend you're talking to a busy colleague and note, spelling and grammar do matter)
  • Introduce the problem.   How did you encounter this problem you're trying to solve, difficulties you've had so far in trying to solve it.
  • Help others reproduce the problem.   If you have code, which you might on your UI action, include the part that isn't working as you expected.

hibye
Giga Contributor

My intension is to download the image attached to the incident when i click the ui action "DOWNLOAD"..this is my question..it is possible??


You want to download one attachment or many attachments all together ?