Create a PDF file from Incident

inba
Kilo Explorer

Hello All,

I want to create a PDF file from an incident. The pdf file should contain all the details about incident. As for as I know
https://myinstance.service-now.com/incident.do?PDF&sys_id=myincidentsysid will save the PDF file into local machine.

But I want this should be stored in a table and later I will pass this incident pdf file to another 3rd party system using webservices.

My question is how to save the pdf file to servie-now instance (like sys_attachment table ) which is getting generated using https://myinstance.service-now.com/incident.do?PDF&sys_id=myincidentsysid URL. Is there any get request can be issued against this URL and response can be stored in table.

Thanks in advance

5 REPLIES 5

tony_fugere
Mega Guru

It sounds like you may be causing yourself a bit of extra work here, but I'm sure you have a reason.

Why not "cut out the middle man" on this and just grab the PDF via 3rd party when ready to do so?
Why does it need to be stored on an intermediary table (like sys_attachment) prior to being sent to the 3rd party by a Web Service?


Thanks for the reply.

It would be better to store it in a table because I can do the multiple attempt, instead of creating each and every time. But I can drop it.

The main issue is create PDF on the fly or later with the incident details and send via webservice to the other system (which is very old technology).

As soon as user press Submit, I will run BR and it should generate the PDF and execute the SOAP message script to push the attachment to other system. Do you have any idea?

//Inba S.


SakshiArora
Giga Contributor

Do you have the solution for this? I am also trying to do the same. What I have to do is send the attachment in an email.

Please share the solution if you have any

Thanks in advance.


Romulus Rodrigu
Tera Expert

Looking for the same as @SakshiArora if anyone has a solution please share.

Thank you,