SFTP Step: Copy Attachment to SFTP Server

Shekhar Duba1
Tera Contributor

How to use this action step and send an attachment to MID Server. Can any one provide me step-by-step details.

 

 

 

I did tried to implement but got error : Cannot connect, status is TCP_CONNECTION_DROPPED. Connection unexpectedly closed by SSH server

2 REPLIES 2

Hemanth M1
Giga Sage
Giga Sage

Hi @Shekhar Duba1 ,

 

1)Do you have the credentials to SFTP server?? if yes configure the step as below

A)Connection : Define Connection Inline

B)Credential Alias: Create a Connection and Credential Alias entry , use type credential 

C)Host: IP of the SFTP server

D)Port : 22

E)MID selection : Auto select

MID appkication : All

Capibilities: SSH

Attachments : You can glide sys_attachment table to find your attachment and send

Copy to SFTP target : Provide the folder to copy 

 

Make sure credentials/account your using has access to write to folder that you copy.

 

Hope this helps.

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi, Is there a feasibility to copy attachment from SN to SFTP server without using midserver?