How to get text latest row data from web page dynamically


here i have 2 rows, tomorrow i can 4 or 5, i need to get latest row status

Hey @MitheshBolla,

If the latest row is getting added at last than you can use the following method.

dt = dt.AsEnumerable().Last();

If the latest row is getting added at first than you can use the following method.

dt = dt.AsEnumerable().First();

Thanks,
Sanjit

@MitheshBolla
are you getting data in datatable from web?

1 Like

Hi @MitheshBolla

Try with below one:

  1. Use Data Scrapping → Store it as DtVal
  2. Use Assign activity

LHS → DT1
RHS → Dtval.Rows(DtVal.Rows.Count-1)

Regards
Gokul

1 Like

Web extraction is coming in format of string

No, its coming in string

can you show string.

Could you share us with the sample string @MitheshBolla

You can try with

Generate table activity → To convert string to DataTable and try with the above expression