【问题标题】:Custom workflow activity - return collection or array?自定义工作流活动 - 返回集合或数组?
【发布时间】:2012-04-14 08:39:11
【问题描述】:

对于 MS CRM 2011,我进行了自定义工作流活动,但我无法注册它,因为我试图返回作为输出参数

OutArgument<IEnumerable<EntityReference>>

这可能不受支持。

如何返回集合或实体引用数组?

谢谢

【问题讨论】:

    标签: list android-activity workflow dynamics-crm-2011


    【解决方案1】:

    This is list of supported types 您可以返回自定义工作流程。不幸的是IEnumerable不在列表中:(

    【讨论】:

      【解决方案2】:

      你最多只能一次定义一个引用:

          [Input("EntityReference input 1")]
          [Output("EntityReference output 1")]
          [ReferenceTarget("account")]
          [Default("3B036E3E-94F9-DE11-B508-00155DBA2902", "account")]
          public InOutArgument<EntityReference> AccountReference { get; set; }
      
          [Input("EntityReference input 2")]
          [Output("EntityReference output 2")]
          [ReferenceTarget("contact")]
          [Default("4C036E3E-94F9-DE11-B508-00155DBA2902", "contact")]
          public InOutArgument<EntityReference> AccountReference { get; set; }
      

      支持的参数有:

      • Bool
      • DateTime
      • Decimal
      • Double
      • EntityReference
      • Int
      • Money
      • OptionSetValue
      • String
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多