How can i add Objects to my EntityCollection?

Hi,

I have a EntityCollection and i would like to know how can i add Objects to that EntityCollection in my ScriptTask.

EntityCollection ec = Get<EntityCollection>("ProcessParameter1");

var entity;

ec.Add(entity);

Set<EntityCollection>("ProcessParameter1",ec);

Like 0

Like

1 comments

The Add method is correct. Additionally, I'd not recommend using a simple list instead. 

Show all comments