哪个属性触发了我的 CRM 4.0 工作流程
我有一个带有自定义工作流程活动的 CRM 4.0 工作流程。此工作流程在帐户的选定属性更新时触发。所选属性是包含 20-30 个字段的列表。有没有办法找到哪些属性触发了 CRM 4.0 中的工作流程(即属性已更改),而无需为每个属性创建单独的工作流程或使用审核?
I have a CRM 4.0 workflow with a custom workflow activity. This workflow is triggered on select attribute updates of accounts. The selected attributes is a list of 20-30 fields. Is there a way to find which attributes triggered the workflow in CRM 4.0 (i.e. attributes have changed) without creating a separate workflow for each attribute or using auditing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工作流程实际上只是一个奇特的异步插件。本文有很好的解释:http://blogs.msdn.com/b/crm/archive/2009/06/24/microsoft-dynamics-crm-4-0-iworkflowcontext-interface.aspx
请注意,您可以从工作流上下文访问 InputParameters 集合。这应该包含您的 TargetEntity,就像正常的插件编程一样。 TargetEntity 将仅包含已更改的字段,因此您可以循环访问该集合以发现哪些字段更新触发了工作流。
A workflow is really just a fancy asynchronous plugin. This article has a great explanation: http://blogs.msdn.com/b/crm/archive/2009/06/24/microsoft-dynamics-crm-4-0-iworkflowcontext-interface.aspx
Notice you can access the InputParameters collection from the workflow context. This should contain your TargetEntity just like in normal plugin programming. The TargetEntity will only contain fields that changed, so you can loop through that collection to discover which field updates triggered the workflow.