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:
'x = some number
Set NetworkObj = CreateObject("WScript.Network")
whoami = NetworkObj.UserName + x
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?
Re: Passing parameters in a "Run Script' Function
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.
Andrey Corrales Torres | SW Technical Support Consultant.
Hewlett-Packard (SSO Portal)
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.