how to create attachment from external for loading data using scheduled import

Satyanarayana j
Tera Contributor

My requirement is upload data using scheduled import data but need to create attachment from external so we not having load data module access and inbound mail access.

data sheet need sent  to ServiceNow. Could please share other pliability to create attachment form external .if possible we send attachment form externally. I will add to data source record and excecated from schedule import. 

Satyanarayanaj_0-1690200371519.png

 

 

1 REPLY 1

Riya Verma
Kilo Sage
Kilo Sage

Hi @Satyanarayana j ,

 

Hope you are doing great.

 

a high-level outline of the technical solution:

  1. Implement a secure file transfer protocol (e.g., SFTP) to facilitate the data sheet's safe transfer from the external source to ServiceNow.
  2.  Create a custom API endpoint on ServiceNow that allows external systems to upload attachments.

  3. Implement appropriate authentication and authorization mechanisms to ensure only authorized systems can access the API.

  4.  Configure the external system to send data along with the attachments to the ServiceNow API endpoint securely.

  5. On the ServiceNow side, write server-side code (Business Rules, Script Includes, etc.) to handle the incoming data and attachments. Store the attachments appropriately in the desired record on ServiceNow.

  6. Set up a scheduled import job on ServiceNow to fetch and process the data, including the attachments, from the data sheet provided externally

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma