[英]Dynamics crm 2011 online - how to create a custom code that is run once?
I want to create a dynamics crm solution that will be imported by the customer. 我想创建一个动态crm解决方案,由客户导入。 After import, the user must complete some settings in a custom entity.
导入后,用户必须完成自定义实体中的某些设置。 After this, a specific code must run for these new settings, but only once.
在此之后,必须为这些新设置运行特定代码,但只能运行一次。 I cannot use custom workflows because it has to work in the online crm too.
我不能使用自定义工作流程,因为它也必须在在线crm中工作。 The best would have been to have a synchronous plugin that is registered to execute when the settings are saved.
最好的方法是在保存设置时注册执行的同步插件。 I cannot do this because plugins can be registered for a limited set of entities, custom entities are not supported (am I right on this?).
我不能这样做,因为插件可以注册一组有限的实体,不支持自定义实体(我是否正确?)。
What alternatives do I have? 我有什么替代品?
Using a Configuration Page for your solution might make it easier for the user to configure. 使用配置页面为您的解决方案可能使用户更容易配置。 Instead of making the user manually set up a configuration entity, use Javascript in the Configuration Page web resource to hit the REST endpoint and do the setup for you.
不要让用户手动设置配置实体,而是使用配置页面Web资源中的Javascript命中REST端点并为您进行设置。 You might also be able to run your custom setup code using Javascript (or use a plugin on the configuration entity as ckeller has confirmed).
您也可以使用Javascript运行自定义设置代码(或者在ckeller已经确认的情况下在配置实体上使用插件)。 Here's a link about the special Configuration Page:
这是关于特殊配置页面的链接:
http://mahenderpal.wordpress.com/2011/07/26/step-by-step-adding-configuration-page-in-solution-ms-crm-2011/ http://mahenderpal.wordpress.com/2011/07/26/step-by-step-adding-configuration-page-in-solution-ms-crm-2011/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.