简体   繁体   English

在Quick Campaign上运行异步作业

[英]Run asynchronous job on Quick Campaign

I want to have a button on Quick Campaign form that runs a workflow on all letters connected to the specific Quick Campaign. 我想在“快速运动”表单上有一个按钮,该按钮可以在连接到特定“快速运动”的所有字母上运行工作流。 Since there are possibly thousands of letters, this must be done asynchronously. 由于可能有成千上万个字母,因此必须异步完成。

First idea was to create a workflow that does that and the button on the form executes this workflow, but since the Quick Campaign is not a real entity, it is not possible to create a workflow for it. 第一个想法是创建一个工作流来执行此任务,并且表单上的按钮将执行此工作流,但是由于Quick Campaign不是真正的实体,因此无法为其创建工作流。

Any ideas? 有任何想法吗?

You did not say anything about the version of the CRM, so I'm assuming it's CRM 2016. You can fulfil your requirement using custom Action. 您没有说CRM的版本,所以我假设它是CRM2016。您可以使用自定义操作满足您的要求。 Simply create a process of type Action, that will be global (as you cannot run it on Quick Campaign as you already figured out). 只需创建一个Action类型的流程,该流程将是全局的(因为您不能像已经想出的那样在Quick Campaign上运行它)。 As the income parameter simply pass an entity reference for your Quick Campaign. 作为收入参数,只需为您的快速广告系列传递实体参考即可。 Now you can create a plugin (asynchronous) that will run on this action (Post Operation). 现在,您可以创建一个插件(异步),该插件将在此操作(后操作)上运行。 There you can do whatever logic you want. 在那里,您可以执行所需的任何逻辑。 Actions can be very easily called from webAPI, so you can easily do it from your button. 可以很容易地从webAPI调用操作,因此您可以轻松地通过按钮进行操作。

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

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