Using PowerShell script in flow designer need to send an attachment to mid server from ServiceNow.

sree31
Tera Contributor

Hello Everyone,

 

I am generating an attachment (CSV Format)  using flow designer and would like to send that attachment to mid server through flow designer. In order to configure this I need to create a mid server script file and write a power shell script to send the file to mid server through flow designer.

 

Any help is appreciated.

 

Regards,

Sree

2 REPLIES 2

Not applicable

vermaamit16
Kilo Patron

Hi @sree31 

 

Below posts could be helpful :

https://www.servicenow.com/community/now-platform-articles/subflow-and-actions-for-saving-file-to-on...

https://www.gyanbucket.com/2023/06/text-file-and-mid-server.html

 

Alternatively, you can also pass the csv content as a param to your PowerShell script and can make use of Write-CSV cmdlet to write the CSV file on the mid server using the Integration Hub PowerShell Step.

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma