Notifications
Announcements
No record found.
Hi, usually, we select specific entity to create plugin, is there anyway to create a plugin for different entities? Thanks
*This post is locked for comments
Hello,
There are bunch of generic plugins and the great example is AutoNumbering plugin. It can work for any target entity. Do you have any specific question?
Technically, plugins are not associated with entities till you register a message processing step. If you are using a plugin registration tool, for example, you can register any plugin for any entity (whether it will work or not depend on how you write code for that plugin, of course)
You can create a generic (common) plugin which can be registered for different entities for any messages. It will work if you are working on same named fields throughout. But suppose you need to use different fields based on entity names or based on it any other business logic needs to be implemented then you may use the context.PrimaryEntityName = “specific entity logical name” and split the logic. When context is the object of IPluginExecutionContext.
Hope this helps to implement your logic in the plugin.
If this answered your question, please make sure to Mark this as an Answer.
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.
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