![regex replace text workflow regex replace text workflow](https://www.c-sharpcorner.com/UploadFile/anavijai/how-to-convert-word-document-to-pdf-using-nintex-workflow-in/Images/Workflow-Design.jpg)
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory)) IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)) Public void Execute(IServiceProvider serviceProvider) apart from the Description field itself, Reason: This would create an Infinite loop and plugin Execution would stop with an error) using System
![regex replace text workflow regex replace text workflow](https://www.bigmountainanalytics.com/wp-content/uploads/2020/03/workflow2-1024x401.png)
I wrote the following plugin on Updatemessage for Another fieldwhich was also getting updated via Workflow.
#REGEX REPLACE TEXT WORKFLOW CODE#
I found a very helpful code from CodeProject which exactly suits my requirement. Definitely, I needed to figure out a way to convert this message from HTML to Plain Text and this could be easily done with the help of Plugin. So to fulfill this I created a workflow on the Incoming Email where Description Field of the related Opportunity was set with the Email Messages.Īfter saving and Activating my workflow when I tested the functionality with a Email Scenario, results were quite horrifying!!! ?Īctually the Email messages were getting saved in the Description field as HTML. OK, now in CRM 2013 there is already a Notes Section under Opportunity where the related Emails can be viewed very easily but the Client was not interested for that Activities Section showing up on the main form(they actually liked the Old form style of CRM-2011). This was for the sake of ease to be familiar with the Current Ongoing Scenario, without opening up the related E-Mail.
Recently I had a requirement from one of my client where at the Opportunity Stage, any conversation with Email was suppose to be recorded and updated under its Description field.