Need to execute a VBScript and obtain return value

I have a simple VBScript file that returns a string result e.g

Function GeteMailDetails()

GeteMailDetails = “a result string”

End Function

I am trying to use the Invoke VBScript Activity to obtain the returned string, but the result it empty?

1 Like

Does this solution in this thread help resolve your issue?

Many Thanks for the reply, what code would I need in the invoke code activity ?

1 Like

You would actually be able to use the “Invoke VBScript” activity with your existing code.

sorry but I am not sure what you mean ?

1 Like