Hide Web Page After Login the Portal.

Hello folks, Sometime in D365 portal, we have the requirement to hide web page after login mean web page can access only by the anonymous user and after login the portal, web page is not visible to the user.
As you can see in below snapshot, Before login, page is visible
but after login page is not visible.

This kind of requirement can be achieved through code using js. Here i am assuming you have created your web page in the portal.
Now follow the below steps to achieve this requirement.

Step 1:  Go to Portal > Web Template in CRM. Open Header Web Template.


Step 2: Copy the below code and change the name of a web page which you want to hide

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
var userEmail = '{{user.emailaddress1}}' ;
// Here my web page name is Register.
if (userEmail)
{
$('a:contains("NAME_OF_WEB_PAGE")').parent().next().hide();
 $('a:contains("NAME_OF_WEB_PAGE")').hide();
}
else
{
 $('a:contains("NAME_OF_WEB_PAGE")').parent().next().show();
 $('a:contains("NAME_OF_WEB_PAGE")').show();
}
</script>

Step 3: Paste this code at the end of Header Web Template code.



Now check your portal. It's working.

Hope this article helps you!


If you want to hide page for the anonymous user and visible for an authenticated user then Click Here to know that.

Open Web/Classic UI from Unified Interface UI in D365 CRM

Hello folks, MS has implemented new Unified Interface for D365 CRM. Now when you open CRM, By-default it opened Unified Interface View.
The new Unified Interface is a bridge between web and mobile platforms, providing a consistent experience across devices by utilizing a responsive design for optimal viewing and interaction regardless of the device's size or orientation.
However, this new Unified Interface is quite confusing for Developers. Navigation looks good but it’s complex for Developers as they have been habituated with Classic UI.
Here in this article, I will explain to you, How we can get Classic UI back from new Unified Interface.

#Trick 1: 
By appending  "?forceClassic=1" parameter at the end of your organization URL, we can open Web/Classic View.
For Example - Organization URL is - "https://xyz.crm.dynamics.com/main.aspx"
Now after append "?forceClassic=1" parameter
it becomes - https://xyz.crm.dynamics.com/main.aspx?forceClassic=1.

Now hit the URL in the browser and then it will open CRM in Web/Classic View.


#Trick 2:  Using System Settings. It makes web/classic view the default view of CRM.

Step 1: Open your organisation.
 Step 2: Now Click on Setting Icon > Advance settings.
 Step 3: Go to Setting > Administrator.
Step 4: Now click on System Setting. it will open a pop-up.
Step 5: Now find the option "Use the new Unified Interface only (recommended)" under general setting and set its value to No and then click ok.

 Now open your organization. By default, it open web/classic view.


Hope this article helps you!