Notifications
Announcements
No record found.
Hi,
I need to trigger a plugin on pre-operation only on specific conditions based on my code.
Is there any way to do that ?
*This post is locked for comments
Hello,
It's not possible. You will have to include that logic into your plugin code and just exit from execution if condition is not met.
I agree. But its a webservice request. Based on that I need to trigger.
Calling a web service inside plugin code just to check condition will be quite tricky if you call it on a frequently used action like RetrieveMultiple.
I'm sorry but you have no other way.
Ok. But How can i capture webservice request values in the plugin on creation?
I'm sorry but I'm not sure what kind of issues you experience.
What's the difference when to call webservice - during create, update or delete?
Actually In the webservice I am trying to create or update based on the given Request. So on create -
I have a plugin trigger on Pre operation which will generate unique Id.
So for some conditions on the request. I want to prevent the plugin to create Unique Id.
Where are you calling your web service from? The plugin?
Can you please provide more detail of what exactly you are trying to do? It seems like there are some missing pieces to the puzzle here. Also, plugins execute on particular events (such as Create, Update, Delete) as you mentioned previously, what event are you performing before the plugin executes, and what does the plugin have to do exactly?
Thanks...
If you have a web service that's calling CRM, and you have a plugin in CRM that you only want to kick in under some conditions.. Maybe create a special field in your entity and populate that field from the service to indicate (for the plugin)if it should do anything or not.
Hi, I am developing an REST api, I will get input Request, based on that I will create/update entity in CRM. So Before creating i need to trigger plugin (on Pre-Operation) to create UniqueID. So now I have to prevent that plugin to trigger based on the input request.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2