Hi Guys,
I am having a doubt regarding data scraping. I data scraped a content in a website and I am having the results in a variable. I wrote it to a csv to check it. The extracted datatable contains a list of items.
Now what I am looking forward is to do some kind of sort from the Extracted datatable using Uipath Activities.
I need to get only the fares of all hotels with name “A”. I need the output ‘fare’ to be stored in a variable so that I can use it further.I am attaching a screenshot along with this.
I used Assign activity to .SELECT(“hotel name=‘A’”).let this be stored in variable 1 I need to extract the corresponding fares of Hotel ‘A’ and store it in another variable.Let it be variable2
Thanx for quick response. i am having a variable with datatable containing fare and hotel name with A. I need to extract only the fare for A into a variable.With ur method it will iterate through the list right??
Keep in mind if you want to store all the Fare then create a list data type variable for var1.
Otherwise data will be overwriten when for each will run and finally only the last value u can get.
Tried doing so, I sorted the list containing A to a variable lets say ‘var’. Then I tried by putting FOR EACH ITEM activity in var, inside for GET ROW ITEM with column name or index right?
As EXTRACTED DATATBLE variable type is datatable and variable type of var is datarow array(tried with generic and datatable variable type for var, only array datarow ends with no error).
have u tried just putting message box.
item(Fare).ToString
The extracted data table is having headers or not to check this just try to write the datatable in excel sheet.
use excel scope and then write range specify datatable name.
You might have uploaded the incorrect workflow. I cannot see the code which you have attached which was not working.
Please attach the workflow in which for each was not working as desired