Execute linux command through Flow Designer

Nicola Attico
ServiceNow Employee
ServiceNow Employee

Hi,

I'm trying to execute a linux command through flow designer/integration hub

I created a flow with a script step activity with the following script executing 

(function execute(inputs, outputs) {
RunCommand('/path/to/myscript');
})(inputs, outputs);

running on:

MID
Select Mid Server using: Any MID
 
RunCommand is not the right statement and this is failing with "RunCommand is not defined"... is it feasible? What I basicall want to do is to call a node script that I was able to do through ECC queue but i would like to use flow designer for that... The underlying use case is the integration with a technology that support node-like API (Hyperledger Fabric blockchain).
 
Thanks,
Nicola
 
 
1 REPLY 1

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to create ECC queue probe command from flow designer script step.

You can call your command from ECC queue probe.

 

Regards,

Sachin