Showing posts with label D365 Portals. Show all posts
Showing posts with label D365 Portals. Show all posts

Monday, 4 November 2019

Show Plugin Error Message on Dynamics Portals - Site/EnableCustomPluginError Setting

Hi Everyone,

Today I was working something on Portal and we do have some validation at the plugin and throwing an InvalidPluginException based on some business logic. However on the Portal, we were not seeing the same message. It was saying something as "An unknown failure has occureed. Error ID ...".


After some quick search, was able to figure it out that there is a Site Setting which needs to be created to get the same messages from plugin to be shown on the Portal UI.

Navigate to Portal -> Site Settings and create a new record as below.

Name - Site/EnableCustomPluginError
Website - Whatever you have like Partner Portal, Customer Self-Service etc..
Value - true
Try to do the operation which triggers the plugin that throws the error and you will see the same on Portal UI.
Hope this helps.

--
Happy 365'ing
Gopinath

How to configure the logo for Portal - Branding

Hi Everyone,

As we all know Branding is the one which everyone wants. When we setup Portal, we see Contoso, LTD as a text at top left and the Customer might want the Company Logo there or may be some text. 

Here are the steps to change the Branding.

1) Create a Web File with Name, Website, Parent Page and Partial URL.
2) Attach the image to the Notes of the Web File created.
3) Navigate to Content Snippets and in the value(HTML), add a image tag with SRC as the PartialURL given in the Web file.

<p><a class="homelink" href="~/" title="MyPortal"></a><img src="/myportallogo" alt="Microsoft" height="42" width="42"></p>
4) Save the record.


Hope this helps.

--
Happy 365'ing
Gopinath