We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Related link to export PPT Template

BiancaKerchhoff
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);​

 


Thanks & Best regards,
Medi

@BiancaKerchhoff 

 

I hope you are doing well!

Did it work ? Was my reply helpful?


Thanks & Best regards,
Medi

Ankur Bawiskar
Tera Patron

@BiancaKerchhoff 

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader