Home
> Dynamics Portals > Dynamics Portals – Display Plug-in error messages
Dynamics Portals – Display Plug-in error messages
You would have got “An unknown failure has occurred…” many times in your portal when there was exception thrown by your Dynamics CE plug-in code.
Now in Dynamics Portals, we can show the plug-in error in following portal screens by adding “Site/EnableCustomPluginError” entry in Dynamics CE Portals -> Site Settings
- Entity list
- Retrieval of records
- Entity form
- Retrieve
- Create/Update and so on
- Web forms
- Retrieve
- Create/Update and so on
Lets see the approach and steps.
- I have created and registered a plug-in with logic to intentionally throw an exception on ‘Case’ Create.
- Go to your Portal and try to create a Case and you would get below generic exception “An unknown failure…”
- Now open your Dynamics CE application, navigate to Portals -> Site Settings and create a new Site Setting with Name “Site/EnableCustomPluginError” and Value true.
- Go back to your Portal and try to create a Case and you would get actual Plug-in error.
🙂
Advertisement
Categories: Dynamics Portals
Tags: Dynamics Portals, EnableCustomPluginError, Plugin message
Leave a Reply Cancel reply
Stats
- 1,581,533 hits
Tweets
- RT @MikeFactorial: Big things are coming to the #CoEStarterKit. So, @ManuelaPichler_ and team are building the tension for the April releas… 3 weeks ago
- New blog post : Boost conversations using GPT in Power Virtual Agent (PVA) rajeevpentyala.com/2023/03/08/pow… 3 weeks ago
- RT @PPDevWeekly: 🔥 Going Live: Power Platform Dev Weekly 155 bit.ly/PPDevWeekly155 This week's cover story by @RajeevPentyala With gre… 3 weeks ago
- RT @caseyburke21: Pipelines is now generally available! Huge congratulations to the team and all who have supported reaching this milestone… 1 month ago
- New blog post : Call Dataverse actions directly in power-fx rajeevpentyala.com/2023/03/01/ste… 1 month ago
Join 405 other subscribers
Top Posts
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Power Apps | Show pop ups in Canvas App
- Power Apps component framework (PCF) - Beginner guide
- Power Automate Cloud Flow | 'Correct to include a valid reference' error
- God Mode - Level Up - Dynamics 365 Chrome Extension
- Power Apps | Business Rule | Set Field Value vs Set Default Value
- Set “Created On”,” Created By”, “Modified On”, “Modified By” fields using SDK/Data Import/Plug-in – Dynamics 365
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- The server was unable to process the request due to an internal error - plugin registration tool
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
How to clear the message the next time you click submit?
How to change the place where the error message is displaying? for example I want to display the error message at the bottom of the page .
How can I return a friendly error when a real time workflow returnees a error.