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
Gabriela, can you plz post more details regarding your solution?
I am working on functionality exactly like yours (plugin in custom action, invoked in custom worklfow) and getting problems with parameters.
1. What Process Argument needs to be set up in Action?
2. How to set up properties in the Action step in Parent Workflow?
My task is to use an existing plugin to update fields in the Order entity based on some business critieria.
Thank you,
Greg
It seems like my problem was the parameter I was sending, I changed it to entity reference and now its working.
Thank you all.
Hi Gabriela,
I can see in the screenshot of Workflow it is made as run in background, which means it is an asyc workflow.
Which in turn make the whole this as asynchronus.
Can you make the workflow as real-time and test the functionality.
Hope this helps.
Thanks
Phanidhar
You did not post the whole code here - are you sure you are not checking the Depth in the plugin at the beginning of Execute method?
Hi,
Workflows run as realtime which is synchronous and background workflows runs as asynchronous. If it is realtime then make the pluggin registration also as synchronous.
Please update your response here.
Best Regards,
VC Suresh Kumar
Hi Gabriela,
Can you check the workflow instance (background process) to see if the custom action step is actually called?
Hi Gabriela,
This approach is possible. Are you sure your workflow executes the line where the action is called?
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
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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156