Search code examples
dynamics-crm

Error with OutParameter in custom Action


There is the error: The type OutArgument`1 of the property Result is not supported. And there is the code

 [Output("Result")]
  public OutArgument<EntityCollection> Result { get; set; }

I get this error when I try to update my assembly. Any ideas?


Solution

  • You cannot use type EntityCollection in generic OutArgument<T> properties.

    Supported types are:

    • Boolean
    • DateTime
    • Decimal
    • Double
    • EntityReference
    • Int32
    • Money
    • OptionSetValue
    • String

    See MSDN.