How to use CreateDataTable and ReadJSON

Hi ! @Allan_Zimmermann ,
I wan’t to use ReadJSON to read json file,file like “{“name”:“test”}”.error like pic
image

i wan’t know how to write DataTTable.
thank you.

you need to create a datatable variable and use it with the activity

thanks,i wan.t know the [DataTtable] type.what need i write .

i try write lik pic.it’s error.what need i change.

Click on the variable’s tab

then you can create the variable there, and then use that variable in ReadJSON.
Create datatable is used to CREATE one, but you don’t need to create one as ReadJSON will do that for you.

thanks,but also have error.mabe my json file is error.
rpa setting like pic1

json file like pic2

run rpa error like pic3



That is not valid json, you need to escape the string ( use two \ instead of one )

i changed the filePath.but it’s also error.
json file is "{
“filePath”:“F:\System\Desk\batTest”
}
",

i change to tow // but is alse error

can you give me an example code.

{
  "filePath" : "F:\\System\\Desk\\batTest"
}

it’s wrong .may i do something else?

try

[
  {
    "filePath" : "F:\\System\\Desk\\batTest"
  }
]

thanks!it’s ok .i wan’t use data in dt.what need i write in Arguments

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.