简体   繁体   English

CRM 2011:如何在关系实体上调用工作流活动

[英]CRM 2011: How to call Workflow activity on relationship entity

I have a relationship entity Fixture_In_Series which holds a relationship between FIXTURE and SERIES entity. 我有一个关系实体Fixture_In_Series,它持有FIXTURE和SERIES实体之间的关系。 Whenever any new fixture is associated/linked to a series a new record is generated in fixture_in_series. 每当将任何新灯具关联/链接到系列时,都会在fixture_in_series中生成新记录。

I want my custom built Workflow Activity to fire whenever a new Fixture is associated to a Series and then it will do a job. 我希望我的自定义构建的“工作流程活动”在将新夹具与系列相关联时触发,然后它将完成一项工作。

I can see Fixture and Series entity in the list when creating a new process but obviously Fixture_In_Series is not there as it is a relationship only. 创建新进程时,我可以在列表中看到Fixture和Series实体,但是显然Fixture_In_Series不存在,因为它只是一种关系。

Thanks for any suggestions. 感谢您的任何建议。

I believe associate event is not possible to attach. 我相信无法举办联谊活动。

So i suggest you to use the OnUpdate\\OnCreate Entity event and check if the lookup field Fixture has been filled. 因此,我建议您使用OnUpdate \\ OnCreate Entity事件并检查查找字段Fixture是否已填充。

From what you are saying it sounds like you are using a native many to many relationship between Fixture and Series. 用您的话来说,听起来好像您正在使用Fixture和Series之间的本机多对多关系。 These entities cannot trigger workflows. 这些实体无法触发工作流程。

Two options that I see. 我看到了两个选择。 Change your workflow to a plug-in and trigger it on the associate event. 将您的工作流程更改为插件,并在关联事件上触发它。

Or, re-create your relationship as a custom many to many relationship. 或者,将您的关系重新创建为自定义的多对多关系。 This involves you creating the intersection entity yourself, then you can trigger workflows on the update/create of the records in the intersection entity. 这涉及您自己创建相交实体,然后可以在相交实体中记录的更新/创建上触发工作流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM