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)

How to Call a plugin from a Custom workflow in CRM 2015

(0) ShareShare
ReportReport
Posted on by 665

Hi,

I want to call a plugin from a custom workflow , is it possible? Earlier  i had added a step that updated a field   and called  a plugin. Any help would be appreciated.

Thanks,

Abhishek

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Henrik Gundersen Profile Picture
    978 on at

    Make sure you mean plugin when you say plugin here. Plugins activate and run purely on events/messages like create, update, delete (and many more). Actions in CRM are more like method calls with inputs and outputs that you start manually. Workflows are also event driven (create, update, delete and so on) but most often run as an asynchronous process.

    If you need to run the code you have put in a plugin without creating new entity instances, consider pulling the reusable code out as a custom workflow activity. That will let you perform the logic as a workflow step. If you want to trigger the exact same plugin and not reuse the code, perform the operation you have registered the plugin to. For example, if you have a pre-create plugin on the case entity, then create a case from your workflow.

    If you instead want to perform some piece of business logic, like you would a method or procedure in code, then consider if using actions is an option for you.

    I would not recommend chaining together different pieces of event handlers, as this is very likely to cause maintenance headaches. Imagine a Rube-Goldberg machine and you get my drift.

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