Frequent Visitor..
Frequent Visitor..

Passing parameters in a "Run Script' Function

Is it possible to pass vbs parameters through the "Run Script" operation in a flow?  For example, my script looks something like this:

Function whoami(x)

'x = some number
Set NetworkObj = CreateObject("WScript.Network")
whoami = NetworkObj.UserName + x

End Function

My fuction name in OO is "whoami(5)".  Everytime I run run my flow the script runs successfully, but it returns an error with "Microsoft VBScript runtime error: Type mismatch: whoami(...)".  When I remove the parameter the script runs fine which leads me to believe that the OO Run Script operation doesn't support parameters.  Anybody seen this before?






1 Reply
New Member.

Hello Harden,

Thank you for contacting HPE Forum. 

My name is Andrey, I am from the OO/CSA team. 

Regarding your question, could you please inform me what version of OO are you using? And which content pack? 

I would like to do a quick test to reproduce this.

Best Regards,


Andrey Corrales Torres | SW Technical Support Consultant.

Operations Orchestration

Hewlett-Packard (SSO Portal)

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.