Reading CSV from line 3


#1

Hello,
I’m new to Kantu, coming from iMacros.
I need to read from CSV starting from line 3.

this is the code I’m using

“Commands”: [
{
“Command”: “csvRead”,
“Target”: “new.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “3”,
“Value”: “!csvReadLineNumber”
},
{
“Command”: “type”,
“Target”: “id=fcogn1”,
“Value”: “${!COL2}”
},

When I run the macro it always reads from line one, no matter what value is stored in !csvReadLineNumber.
See attached screenshot.

Thank you for your help


#2

Your macro is almost correct. But store | 3 | !csvReadLineNumber has to be before csvRead :wink:


#3

Thank you very much. it’s working now!