How Can I use my Mid Server Script File in Mid Server Script Include or in the workflow?

Anshul12
Tera Contributor

So I have a Mid Server Script File, which basically I want to use in the workflow. Somebody suggested that I can use a Mid Server Script Include for the same. But I don't know how to use Mid Server Script File code in Mid Server Script Include. Can anyone help me with this?

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

can you please explain what a "MID Server Script" is? Do you mean a PowerShell script? Please provide an example!

Kind regards
Maik

Yes. The PowerShell script. Following is the sample code:

 

#!/bin/bash

echo *************Starting Script Execution*************
echo ""

echo hostname:
echo =========
hostname
echo ""

Richard Hine
Tera Guru
Tera Guru

Didn't you ask the same question already today and @Ankur Bawiskar gave you the solution?

https://community.servicenow.com/community?id=community_Question&sys_id=a2592b9e1b090914ccc253da234b...

Richard

Hey Richard. Yes, he surely helped me, but I still don't have any idea how can I use my Script File, the PowerShell code there. Can you help with that?