Reputation: 65391
We are designing a system where the business calculations will be encapsulated in CRM plugins which are called from a workflow in CRM.
Many of these business calculations are in legacy systems in several different technologies.
Question is: Do we have to move this code into the plugin as C# code, or can we call it via a web service from the Plugin?
Upvotes: 0
Views: 2441
Reputation: 524
You mentioned that the plugins would be "called from a workflow in CRM", which might mean a few different things:
You have a few different options for storing the configuration information (e.g. the service endpoint URL, etc.):
There are pros and cons to each of these approaches that depend on a variety of factors that are dependent upon your scenario:
Etc.
Upvotes: 0
Reputation: 2040
A custom workflow plugin is a Windows Workflow Foundation activity. Whatever you can do in a workflow activity you can do as a workflow plugin - so, the answer is yes. However, you may want to give configuration parameters as input to the workflow activity (ie. the URL to the service) or store it in a custom entity. This way everything can be configured from CRM. You can even export the workflow xaml, modify it in a designer and reimport it into CRM. In CRM 2011 this is even a supported approach (so they say). Note that for CRM online, custom workflow activities are not supported.
Upvotes: 2
Reputation: 3276
You can call web services from plugin and then call these plugins from workflow. It has been many years since I touched CRM but I used to do it and there should not be any problem.
Upvotes: 1