web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

i want to trigger workflow before plugin

(1) ShareShare
ReportReport
Posted on by 94

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

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    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/

  • Suggested answer
    Saad Kabarousse Profile Picture
    734 on at

    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.

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    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/

  • Suggested answer
    Aditya Profile Picture
    260 on at

    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.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Could you please share some details about your requirement.I would recommend to implement workflow business logic in the plugin itself if possible.

  • Suggested answer
    Dilip Kumar - CRM Profile Picture
    67 on at

    Hi,

    Always the Plugins will execute prior to the workflow. It's well explained in this blog,

    andz88.wordpress.com/.../

    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.

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Plugin executes before workflow hence if you want to execute it then convert it to plugin.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans