HI,
I have one Plugin and workflow are registered on the same event, and i want to run workflow before the plugin, without using any third party tool, Is it possible.
thanks,
*This post is locked for comments
Plugin executes before workflow hence if you want to execute it then convert it to plugin.
Hi,
Always the Plugins will execute prior to the workflow. It's well explained in this blog,
There are different ways you can achieve this,
1. Convert the plugin code to a custom workflow activity.
2. You can create an action and change the plugin code and register the plugin message to this action. Call this action in your workflow.
If we know your requirement then we can suggest you the best approach.
Could you please share some details about your requirement.I would recommend to implement workflow business logic in the plugin itself if possible.
Try out by converting your workflow to synchronous workflow by clicking "Convert to real-time workflow" button on the top of workflow by deactivating your asynchronous workflow.
Register your plugin asynchronously and then test.
The synchronous workflow should execute before asynchronous plugin.
If it is create Event and your workflow is Async, then plugin will always execute first, no matter what. You need to hook the workflow logic to be a part of plugin or create a new plugin and set execution order of the plugin accordingly.
As it is by CRM design plugin will always get executed before Aysnc workflows, I believe no tool also will support you go against CRM principle.
Blog : https://vjcity.blogspot.com/
Hi,
You can create a custom workflow (that will do the same work as the plugin) and call it inside your existing workflow.
Or create a new child workflow that will callto the new custom workflow and add a step to your existing workflow that calls the child workflow.
I hope this helps :)
Please mark as verified if the answer is helpful.
Why cant you try with custom activity workflow. ?
This is help you to achieve functionality of workflow as well as plugin.
Refer this blog for more info:
https://www.inogic.com/blog/2013/01/custom-workflow-activities-for-microsoft-dynamics-crm-online/
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6