Showing meaning plugin error to portal users

In this post, we are going to configure portal settings that will modify plugin errors displayed to portal users, rather than the usual generic error being shown to users.

Below, I have created a plugin that just throws an error anytime a lead is created in portal

Register the plugin on post-operation on Create of a lead. When a portal user creates a lead using the OOB contact-us page, a generic error like the below is returned:

Continue reading “Showing meaning plugin error to portal users”

How to stop plugins from executing programmatically

You might have a situation where you would need to create or migrate records to dynamics using a console app or using any other platforms programmatically, and you don’t want to trigger plugins associated with the targeted entity. In this post, we would see as such a requirement can be met;

Here, I have created the below plugin and registered it to trigger on post Operation of entity Create, in this case, Account entity.

Continue reading “How to stop plugins from executing programmatically”