c# - List in arguments for custom workflows? -



c# - List<> in arguments for custom workflows? -

i'm trying have next custom workflow retrieve contacts based on next criterias.

[input("retrieve customers renewal date lesser or equal today + x days")] public inargument<int> days { get; set; } [input("for service?")] public inargument<string> service { get; set; }

and i'd want homecoming following:

[output("customers renewal")] public outargument<list<contact>> customers{ get; set; }

my thought workflow step loop through workflow returns (customers).

but when i'm registering assembly, step above fails register due to:

the type outargument`1 of property customers not supported

what type of arguments supported ? msdn did not tell me much , concept of returning list faulty or can workflow process 1 record @ time ?

thanks.

custom workflow activities can utilize outargument set of types, , there isn't type (like entitycollection example) homecoming multiple items single outargument.

because want homecoming list of contact can utilize static marketing list workaround.

inside custom workflow activity create new marketing list , set contacts members of list (marketing list can used contacts, accounts or leads) , homecoming id of list entityreference:

[output("list of contacts")] [referencetarget("list")] public outargument<entityreference> marketinglistref { get; set; } // code create marketing list , add together contacts guid marketinglistid; // set outargument entityreference marketinglistref = new entityreference("list",marketinglistid); marketinglistref.set(executioncontext, marketinglistref);

c# .net dynamics-crm-2011 workflow

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -