Generate a file in Orchestration, put on MID server

natep
Kilo Contributor

I generate a formatted file from a script in Orchestration and need to put it on the MID server. 

We are attempting to create a file from our ServiceNow instance using attributes from an Incident which will trigger the workflow, placing the generated file in the filesystem of the MID Server. We'd like to to then take that file and FTP to a different internal system.

I'm sure I'm missing something obvious. Any thoughts on how to accomplish this? 

6 REPLIES 6

Someone here offered an idea of writing a Powershell script that executes on the MID Server which puts a file on the MID Server in the format we want. Still considering options. Thanks again.

tim_broberg
ServiceNow Employee
ServiceNow Employee

Yes, that's what I was going for in #3.

Back when I worked in the development team responsible for the mid, I fielded a PRB or two related to SSHCommand probes with huge name fields that were basically cat 'line after line\nof gawdawful long file contents that went on\n for megabytes' > file.

At the time, I thought there was some standard activity for it, but I wasn't able to find it now. Perhaps it was simply a test probe, or maybe it was simply taken out back and put out of its misery.

...but it worked. Eventually.

The principle has been proven workable for sub-ridiculous file sizes.

    - Tim.