Difference between add to collection and build collection

image
Really need help with this, how to i use build collection. i am looking to add a data tables cell value to a collection, by using a for each data table row.

Hi,

For your use case, Build Collection doesn’t help you.

Instead, you should use the ‘Invoke Method’ activity, with the following properties:
yourCollection
‘yourCollection’ is your collection variable. The value to add in the collection you have to specify in the ‘Parameters’ property of the ‘Invoke Method’ activity:

Hope this helps!

1 Like

Hi @Rakib_Ali_Tanzin ,

Use “Append item to collection” Activity and check attached Xaml

Sequence.xaml (9.8 KB)

Thanks,
Rajkumar

1 Like

Why not just use the Add to Collection activity, since that’s what it is intended for?

I guess that would work as well, but I’m not using the Modern activities so I don’t have much knowledge about them.

I don’t think Add to Collection is a modern activity. But you should switch to modern, the activities are much better.

Just checked it, indeed I do have it. I guess i just didn’t notice it for all these years.

Regarding the modern activities, I’ve played around with them for a bit but they are quite buggy as of now and some of the functionalities are missing (or at least they were missing when i checked them out).
Personally I will wait until UiPath will anounce the discontinuation of the Classic activities before switching to Modern.

I’ve been developing for quite a while now with almost nothing but modern. What are these bugs and limitations you run into? And even when you’re on modern, you can still use the classic activities if you need to. You can mix the activities in your project.

The limitations that I encountered about 8 months ago were regarding the Outlook activities package, however I don’t remember exactly what the issue was at that time.

I use some modern activities from time to time because indeed some of them provide some great functionality (especially the excel ones).

My experience is full on the Classic Activities and I don’t feel like changing that as of now to put it simply :))

1 Like

Thank you very much for your help

Thank you very much for your help, your help is very much appreciated.

1 Like

Hi @Rakib_Ali_Tanzin ,

Apology for asking you have marked solution to your reply !

Could you mark solution to my post!

Regards

I just did now, thank you again. this was my first post, appreciate the help very much.

Hi @Rakib_Ali_Tanzin,

Thank you for appreciation. Happy Automation :slight_smile:

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