SFTP file to other server

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2019 11:44 PM
Hi,
We have a requirement where we need to generate a CSV file and upload that file into other server. This is external server for which we might get SFTP access.
I have already generated the file and now i need to push it to the other server. Does anyone did such type of integration? If yes, would be great if you can share some ideas.
- Labels:
-
Integrations
-
Scripting and Coding
- 1,524 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2019 07:18 PM
Hi,
Nice; so regarding sending the file from Midserver to ServiceNow; below approach you can take
a) get the base64encoded data for that file in mid server script include; send it back to servicenow
b) write business rule on ecc_queue table to grab this
c) use Attachment Creator to create attachment on the target record you want
OR
a) Consume the Attachment API from mid server script include; this would require java code to consume http endpoints etc
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader