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)
Answered

Calling a plugin from an action called on a workflow

(0) ShareShare
ReportReport
Posted on by 45

Hello,

I am working on D365. I have a workflow that calls an action and that action is taken as a step on the plugin registration for a plugin.

But the plugin is not firing, do you know if what I am trying to do is possible?

I made it this way because I need to update some related items when the status of one entity changes, and as I cant get a retrieve on the workflow, I knew this should be done with a plugin, but I made an action to call it because I need to send the id from the changed entity to be referenced on the related items.

Thanks for your help

Gaby

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Gaby,

    Can you please post screenshot that shows your action, screenshot of step of a plugin you developed and code of a plugin? And screenshot of your workflow as well please.

  • Gabriela C Profile Picture
    45 on at

    This is the wf

    step_5F00_action.png

    The red rectangle is the action I am calling, in the configuration I am passing the id of the record the wf created before the call for the action

    action-properties.png

    This is the action, it only has the id as input

    1184.action.png

    The action is set as a step for a plugin

    step_5F00_action.png

    And the code gets all the items I need to modify and then set the reference to the created record on the wf. (I tested this code on a separated console and its working fine)

    3250.code.png

  • Community Member Profile Picture
    on at

    Hello Gabriela,

      Can you please also send a screenshot of the step(detail page) you have added?

    Thanks

    Yogesh

  • Gabriela C Profile Picture
    45 on at

    detail_5F00_step.png

    Do you know if this kind of action is possible or if is not? Because the plugin is not firing.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    One more thing - can you post screenshot of WF Action itself - I would love to see what you pass inside. Also can you please post screenshot of WF that was executed just to recheck that action was invoked on WF side.

  • Inogic Profile Picture
    682 on at

    Check whether the Plugin is getting triggered by throwing manual Exception immediately inside the Execute function as shown in below screenshot.

    7827.p.jpg

    This will confirm that the plugin is exactly getting triggered or not

     

    Hope this helps.

     

    Thanks!

  • Gabriela C Profile Picture
    45 on at

    I tried that already and the exception never shows, that why I think the plugin is not triggered.

  • Gabriela C Profile Picture
    45 on at

    I think I dont understand. I already posted the screenshot of the workflow and marked where the action is being called. Its the first image. And the code called is a plugin that receives the context, not a wf action.

  • sandeepstw Profile Picture
    4,601 on at

    Hi,

    You can do retrieval of data in custom workflow and update record. There is not need to make plugin for the same. Follow this article for creating custom workflow -

    mahenderpal.wordpress.com/.../step-by-step-creating-custom-workflow-in-microsoft-crm-2011

    Please verify my answers.

    Thanks,

    Sandeep

  • Gabriela C Profile Picture
    45 on at

    I know this can be made with custom wf, but is not what my client wants. And my doubt is about why the action is not calling the plugin with the step I registered to do so. I want to know if the approach I proposed is possible.

    Thanks

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