Need excel data in string variable

Hi Team,

Need excel data in string variable

Input:

Output:
variable —> shaik : 1
mukthar : 2
valli : 3

(note : whole table consider as a string varibale)

please help

thanks
shaik

Use read range activity to get details in datatable

then output data table to string activity to convert it into string

Hi @Mukthar_Valli

Use For Each Row in Data Table activity

Regards,

hi @lrtetala

I have edited the post please check

thanks
shaik

@Mukthar_Valli

Use Output Data Table as Text activity

Regards,

hey @Mukthar_Valli you can use output data table so it will convert your datatable into string variable

cheers

@Mukthar_Valli

If you want to separate the data with ":" then try below

str_Output = String.Join(Environment.NewLine, dt.AsEnumerable().Select(Function(row) String.Join(" : ", row.ItemArray)))

Regards,

Hi @Mukthar_Valli

Please follow below steps:

If you found helpful, feel free to tick as a solution.
Happy Automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.