Hello guys. I have a question. I have a extract Table Data activity. It goes to google search and takes the first page’s results. How could I manipulate the data table, so that for each row that it takes, it would add a timestamp to every row and the keyword it searched for? For now I get this result.
What you can do is as the process is in for each row in datatable
Use Add Datacolumn and name the new column as Date in the input dt
Inside the foreach Given an Assign
CurrentRow(2) = Now.ToString(“yyyy.MM.dd hh:mm:ss”)
Below the for each
Write the datatable and the datable will be updated in the excel
Im sorry for not making it easy to understand. I want to add the date and the keyword to the datatable that is being taken out of google (the data table that is generated after Extract Table Data Activity.), but not for the one is thats used for looping
I want to add date and keyword text to the data table rows that are extracted from google
Use the Extract Table Data activity to extract the table data from the Google search results page.
Add a new column to the data table using the “Add Data Column” activity. Set the name of the new column to “Timestamp” and the data type to “DateTime”.
Add another new column to the data table using the “Add Data Column” activity. Set the name of the new column to “Keyword” and the data type to “String”.
Use a For Each Row activity to loop through each row of the data table.
Inside the For Each Row activity, use the “Assign” activity to set the value of the “Timestamp” column to the current date and time using the “Now” function.
Use another “Assign” activity to set the value of the “Keyword” column to the search keyword that was used to extract the data.