Storing and retrieving attachment file outside of servicenow

lior3
Tera Contributor

Hi

So,  I got this following challenge which requires me to attach a file to a form in SN but, store it outside of SN(I guess with API attachment).

So, basically its not really attaching the file but only trigging a 3rd party app which enables me to browse local file, saving it in a certain server and get me back a path to the file to store it in SN.

So the result is a link to the file(outside of SN) attached to the form in SN

 

any advises?

 

Thanks

Lior

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

in order to send the file to 3rd party it has to be attached to some record in ServiceNow.

You can then consume 3rd party Endpoint API and send file details -> fileName, contentType, fileData(base64Encoded data)

regards
Ankur

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

Hi, its not sending to 3rd party, but creating a button in SN that will call the 3rd party App, in the 3rd party App(browser button to choose file), pick a local file, and  save it(all in 3rd party app), than, getting back(from 3rd party) a link path to the stored file and save it in SN.

so, the 3rd party app is already exist, it saves the file and generate the path for me, my part is to call the App and get the link(path) to store it in SN.

so the result is: a link to the file is attached to the form task in SN.

 

 

 

Hi,

you can just invoke the API of 3rd party.

But you cannot simulate the exact look and feel

Please share some screenshots for better understanding

Regards
Ankur

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

Mahendra RC
Mega Sage

Hello Lior,

The requirement that you have mentioned is not possible from ServiceNow. Because if you create a button in ServiceNow that will call the 3rd Party App and then all the actions are happening in 3rd Party app you cannot call the 3rd Party API to get the attachment link because you need to call the 3rd Party app once the file is updated and you cannot predict the time at which you need to call the 3rd Party API.

So I believe it has to be implemented something in 3rd Party App in a way that the 3rd Party App call ServiceNow API to update the Attachment link on the required record in ServiceNow.

Please mark this helpful/correct, if it answer your question.

Thanks