Hi team,
the webtable consist of a column link to download the form but there might be a possiblity that there are two links present so in that case BOT will be checking the date column and on the basis of highest/latest date will be clinking in the link column to download the form.
Can anyone help to bulid this logic.
For this use webscrapping to scrape the entire webtable and then based on datatable manipulation check for latest date and corresponding to that date take the link use download that form which is present in datatable
apart from weblinkā¦u can take any string and store it into variableā¦in real workflow iāll replace it with clickā¦
that if more than one row is present in datatable then click in the column corresponding to highest date in the date column @c.ciprian can u pls help
You have to perform following steps to achieve this.
1- Scrap the data of web page with data scraping activity including date column as well where all the dates are showing ok. It will give you data table.
2- Now you need to add query on data table to find the latest date ok.
[YourDataTableName].AsEnumerable().Max(Function (drRows) DateTime.Parse(drRows.Item(āDateColumnNameā).ToString)).ToString
3. It will give you the latest date then use āget attributeā activity and in the selector add that date and get table row. it will return table row.
4. Pass that table row inside the click activity selector of āDownload columnā of the table.
I did this in one use case but my workflow will not run on your laptop cuz data scraping will not work on your laptop/ pc because of selector issue and url also will not open, i am doing many things in it so share me url i will create workflow.
Uipath is throwing error because column name is āDate Submittedā and it is considering Date as a function in datacolumn because of which while passing the query it is throwing error āDate columnā does not belong to table