本文介绍了如何将EntityCollection返回为Outparameter自定义活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 [ReferenceTarget("contact")] public InOutArgument<EntityReference> PartyList{ get; set; }如何从自定义CodeActivity返回/发送ActivityParty或EntityCollection的列表回工作流程步骤?How can I return/send a list of ActivityParty or a EntityCollection from a custom CodeActivity back to the workflow step?在我的 execute 方法内部,当我返回EntityCollection或List时遇到类型转换错误。Inside my execute method, when I return an EntityCollection or a List I get a type conversion error.从下面的答复中,我想澄清一下:如何退回任何收藏,我看到列表是有限的-我正在寻找解决方法。由于EntityReference是引用/指针类型From the responses below - I wanted to add some clarification:How can I pass any collection back, I see the list is limited - I was looking for a workaround. Since EntityReference was a reference/pointer type推荐答案自定义工作流活动的输入/输出类型不支持EntityCollection: MSDN EntityCollection is not in supported list of Input/Output type of Custom Workflow activities: MSDN您通过在WF步骤中获取EntityCollection试图实现的目标,应该可以在WF活动本身中实现。What you are trying to achieve by getting EntityCollection in WF step, it should be achievable inside WF activity itself.由于您的输出参数类型为EntityReference,因此您将获得转换错误You are getting conversion error because your output param type is EntityReference. 这篇关于如何将EntityCollection返回为Outparameter自定义活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-14 02:36