Split List based on a particular number

Hi Team,

I have a list containing 780 strings.

I want another list which contains first 48 items, second 48 items,…etc

Thanks,
Sateesh.

Hi,

The following post may help you.

Regards,

I want to split the list. here i think it works for array

can you help me with the variables type and then conversion. Thanks

HI,

Can you try the following sample?

listListStr = listStr.Chunk(3).Select(Function(c) c.ToList).ToList()

Sample
Sample20241202-2.zip (2.5 KB)

Regards,

how can i access the nested list in for each loop in this case?

Hi,

Can you try as the following?

Regards,

1 Like

Hi @sateesh.thandra

Please refer to the attached solution



Main.xaml (9.3 KB)