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

Auto download PDF of incident number to system

Rajkumar Bommal
Tera Contributor

Hi 
I want to download PDF of incident number when i click on the button, and it should be saved in system how can i doo that using uiaction

 

1 ACCEPTED SOLUTION

Hello,

 

Try below code. It should work.

VishwaPandya19_0-1713860696590.png


If my answer helps you in any way please mark it as correct or helpful.

View solution in original post

5 REPLIES 5

Vishwa Pandya19
Mega Sage

Hello,

 

We already have this option OOB.

VishwaPandya19_0-1713856917729.png



If my answer helps you in any way please mark it as correct or helpful.

Rajkumar Bommal
Tera Contributor

No i want to create a new button (Download) when i click on download it automatically download with inc number as file name 

Hello,

 

Try below code. It should work.

VishwaPandya19_0-1713860696590.png


If my answer helps you in any way please mark it as correct or helpful.

Hi @Vishwa Pandya19 
thanks for this
and if possible can u do same thing but save pdf with incident number , and the pdf will contain only inc number in it nothing else from the form