Related link to export PPT Template

BiancaK
Tera Expert

Good day 

I have a custom project template that I have created from the PowerPoint templates table in ServiceNow. 

 

I do not want to download the template from the status report export to PowerPoint button. 

But instead I want a UI action > related link on the project form. When the user clicks on the related link it should download the custom project template. 

 

BiancaK_0-1741273040890.png

 

 

Has anyone achieved this?

3 REPLIES 3

Medi C
Giga Sage
  1. Make sure the PPT file is already and sys_attachment table and get its sys_id
  2. In the Form Link UI Action you created (NOT CLIENT). Please use the following script:

 

var URL = '/sys_attachment.do?sys_id=SYS_ID_OF_THE_PPT_ATTACHMENT'; // ADD Sys_id of the attachement file
action.setRedirectURL(URL);​

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

@BiancaK 

 

I hope you are doing well!

Did it work ? Was my reply helpful?


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Ankur Bawiskar
Tera Patron
Tera Patron

@BiancaK 

what does that OOB related link do?

where is that file stored which you want to download?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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