Skip to main content

Notifications

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

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: i want to trigger workflow before plugin

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

  • Suggested answer
    Dilip Kumar - CRM Profile Picture
    67 on at
    RE: i want to trigger workflow before plugin

    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
    gdas Profile Picture
    50,091 Moderator on at
    RE: i want to trigger workflow before plugin

    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
    Aditya Profile Picture
    260 on at
    RE: i want to trigger workflow before plugin

    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
    Vipin J Profile Picture
    1,603 on at
    RE: i want to trigger workflow before 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/

  • Suggested answer
    Saad Kabarousse Profile Picture
    734 on at
    RE: i want to trigger workflow before plugin

    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
    Pawar Pravin  Profile Picture
    5,237 on at
    RE: i want to trigger workflow before plugin

    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/

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans