I have some lines of code which has some conditions in it. I don’t want to code it directly in “Invoke Code” activity.
I will store the entire code in text file. I will read and have the code in a variable(StrTest).
I need to pass only this variable to Invoke code activity.
If I do this, I am getting error as below: Any solutions:
Save your code in batch file instead of text file using write text file activity. and use the below code to execute your code from invoke code activity.
System.Diagnostics.Process.Start(“C:\Kiran\VBCode.bat”) and place the path in a argument and pass it.
find the below screenshot for reference. just thought from my side. Please try your code by executing the command. thanks
I am having 60+ dt.select filters and data update query as below. I need to execute that 60+ lines in that Invoke code.
I am planning to store the 60 lines in excel or text and read that for passing into invoke code.
So that if there is any change in filter condition, no code change required.
compiling code cannot be bypassed therefore loading source code as string will not work so far
the available options are dependend from task what is to achieved