How I can use in data scrpping suppose I have data table and that having 8 rows and I only want 5 rows so how I can add the condition for that?

Hello ,
please guide for the below issue

thank you in advance

How I can use data scrpping? suppose I have data table(data scrpping data table) and that having 8 rows and I only want 5 rows so how I can add the condition for that?

you can modifiy the MaxNumberOfResult parameter to 5 (datascrapping)

Or

  • Extract all data - output: ExtractData
  • slice rows with the help of skip/take

Taking the first 5 rows:
Assign Activity:
dtNew = ExtractData.AsEnumerable().Take(5).CopyToDataTable

taking row 2,3,4,5,6:
Assign Activity:
dtNew = ExtractData.AsEnumerable().Skip(1).Take(5).CopyToDataTable

Can you please briefly explain first solution how I can use that method

first:

like here:
grafik

Thank you @ppr it is working but i’m working data scrpping in while loop five times and for every couter that row should be six so for total 5 counter rows will be 30
using maxnumberofresults getting only six rows for 5 counter like we added maxnumberofresults

how that all 5 counter data table value will get 30rows

I have attached the screenshot

please guide

just adapt or combine with take() method approach

feel free to share some more details on your detail modellings / implementation

Take function is not available in uipath I was trying to add

maybe intellisense is not showing at the first shot, but Take method is available. Share with us the tried details. Thanks

Hi I send you the workflow please check

TEstProcess_Mr_lodge.zip (19.4 KB)

@ppr have you check the workflow uipath version is 2020.10 still facing the function issue of take()

ExtractData.AsEnumerable().Take(5)