How to pass the data table to invoke vb script activity
It is taking only string argument
I have script outside that script has datatable how to pass datatable as argument
How to pass the data table to invoke vb script activity
It is taking only string argument
I have script outside that script has datatable how to pass datatable as argument
You need to do below activity which help you solve the issue
Step 1 : Convert the data table to JSON format
Step 2: pass this JSON as an argument as a string
Step 3 : in VB code you need to convert the JSON file as a data table or based on your logic and you can use the same
I hope @Demo_User it will help you solve your issue.
Convert datatable to JSON string: Newtonsoft.Json.JsonConvert.SerializeObject(yourDT)
Convert JSON string to datatable: Newtonsoft.Json.JsonConvert.DeserializeObject(yourJSONString)