简体   繁体   English

CRM 2011自定义插件将参数传递给流程

[英]CRM 2011 custom Plugin passing parameters to processes

We are trying to automate a few things in CRM and I have an idea about how to go about it while still allowing customizations from the Process section in CRM Settings. 我们正在尝试使CRM中的某些事情实现自动化,我对如何进行操作有一个想法,同时仍然允许从CRM设置的“过程”部分进行自定义。

The problem: We receive a lot of E-mails from an account that are added to a Queue. 问题:我们从一个帐户收到许多电子邮件,这些电子邮件已添加到队列中。 This queue fills up faster than we can clear it. 此队列的填充速度比我们可以清除的速度快。 Most of these E-mails have a standard format and the user only has to read a few lines of the the E-mail body to figure out what to do. 这些电子邮件中的大多数具有标准格式,用户只需要阅读电子邮件正文中的几行内容即可确定要做什么。 There's a total of 6 different workflows that the user would do. 用户总共可以执行6种不同的工作流程。 These haven't been implemented. 这些尚未实现。

Reading the documentation of CRM, I figured that I would need a custom Plug-in that would parse the E-mail body, and trigger a workflow in CRM according to the values in the E-mail. 阅读CRM的文档后,我发现我需要一个自定义插件来解析电子邮件正文,并根据电子邮件中的值在CRM中触发工作流程。 I also need some of the values that the E-mail contains to be passed to the workflow. 我还需要将电子邮件包含的某些值传递给工作流。 I already have the Plug-in setup to do this. 我已经有插件设置来执行此操作。

The problem I run into is creating a process which takes in custom parameters passed over by the Plug-in I created. 我遇到的问题是创建一个进程,该进程接受由我创建的插件传递过来的自定义参数。 I need to access these values in the front-end (one of the Processes in CRM Settings). 我需要在前端(“ CRM设置”中的“进程”之一)中访问这些值。 Is this possible? 这可能吗? If not, is there another way to achieve this? 如果没有,还有其他方法可以实现吗?

Is there a reason you used a Plugin to kick-off this automation instead of a Custom Workflow (which is a Process)? 您是否有理由使用插件来启动此自动化而不是自定义工作流(这是一个流程)? You could perform the parsing of the E-mail inside your Custom Workflow, and use its InOutArgument properties to pass values into subsequent child workflows. 您可以在“自定义工作流”中执行电子邮件的解析,并使用其InOutArgument属性将值传递到后续子工作流中。

Definition: https://msdn.microsoft.com/en-us/library/gg327984(v=crm.5).aspx 定义: https : //msdn.microsoft.com/zh-cn/library/gg327984(v=crm.5).aspx

Sample: https://msdn.microsoft.com/en-au/library/gg334455(v=crm.5).aspx 范例: https//msdn.microsoft.com/en-au/library/gg334455(v = crm.5).aspx

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

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