How to setup Dynamics 365 Portals in CRM Online?

How to setup Dynamics 365 Portals in CRM Online?

Follow the below steps to setup Dynamics 365 Portals in CRM Online,

Step 1:Click here and create Dynamics 365 30 day’s trial version


Use your existing Dynamics 365 Login Credentials to login Office 365 Admin Portal.

Step 2:Click here to navigate to Office 365 Admin Portal.

(For this article, have created Dynamics 365 30 day’s trial version).

Step 3: On the Left hand side menu, you can see Dynamics 365 under Admin Centers. Click on it.

Admin Center - Dynamics 365

Step 4: Follow the below steps,

  1. Click on APPLICATIONS Tab.
  2. Click on Portal Add-On under Manage applications.
  3. Click on MANAGE.

Dynamics 365 Administration Center

Step 5: Provide the below details,

  1. Name: Provide some Name for the Portal.
  2. Type: It is Trial by default.
  3. Select Portal URL: Provide unique name for your portal.
  4. Dynamics 365 Instance: Select your CRM Online Instance name.
  5. Select Portal Language: Select your Portal Language. (For Example: English (United States))
  6. Select Portal Administrator: Select required user to make the person as an Admin for your Portal.
  7. Portal Audience: Select the required Audience to whom this portal for. (For Example: Customer)
  8. Select Portal to be deployed: Select the required portal. Am choosing Dynamics 365 Portals – Custom Portal.

After providing all details, Click on Submit.Dynamics 365 Portal Details

Step 6: Click on Accept.Dynamics 365 Portal - Terms of Service

Step 7: Portal Request is submitted. It will take sometime to import Dynamics 365 Custom Portal Solution to Dynamics 365 CRM and to host the Portal in Azure.

To see the status of the Portal, click on the link as shown in the below picture.

Dynamics 365 Portal - Request Submitted

Step 8: Current Status is as shown below. Please refresh this page after sometime.

Dynamics 365 Portal - Portal being Configured

Step 9: Once portal is created, you can see the Base Portal URL link. Click on it to see your Dynamics 365 Portal.

Dynamics 365 Portal - Portal Created

Step 10: You can see the below Portal Home Page.

Dynamics 365 Portal - Portal Home Page

Step 11: Open Dynamics 365 CRM Online Organization to see the below Portal related Solutions imported and Portals Area in Site Map.

Dynamics 365 Portal - CRM Portals Solutions

Dynamics 365 Portal - CRM Portals Area

Hope you learned a new thing today !!!

Share your valuable feedback on this article.


Published at Mon, 25 Sep 2017 05:33:27 +0000

Microsoft Dynamics 365 Customer Engagement Portals Source Code

Microsoft Dynamics 365 Customer Engagement Portals Source Code


Click here to download Microsoft Dynamics 365 Customer Engagement Portals Source Code.


Published at Mon, 25 Sep 2017 06:30:48 +0000

CRM Portals and Dynamics CRM Portals Feature Comparison

CRM Portals and Dynamics CRM Portals Feature Comparison


Click here for “CRM Portals and Dynamics CRM Portals Feature Comparison

{Quick Tip – Dynamics 365 portals (ADX)}–Dynamically show/ hide entity forms in Dynamics 365 portals (ADX portals) depending on Business Logic using Liquid templates

As I have been working mostly on Dynamics 365 portals, here goes another D365 portal post.

So here is the requirement. The portal customer applies for loan and then views the status of the loan request through the portal. However for every customer, there is one contact who is kind of Power User and is hence able to view some additional details on the Loan Request Form which the regular portal customers are not able to see,

The additional details are like.

  • The internal user with whom the loan request is currently pending
  • Additional internal communications among the internal team regarding the loan request.

So here is the set-up.

  • Two Forms for loan request entity
    • General form visible to all the users
    • Admin form visible to only the power users which shows the additional details

In the portal there is loan request web-page, which depending on the logged in-user, renders the Admin form.

To determine whether the portal user is a Power User or not, there is a field on the contact entity – “Is Power User” which need to be set. Below is the screenshot for the same.

schema name for the field – new_ispoweruser


Creating a loan request entity and then showing it up for the demo would take lot of time and also can’t use the screens from the client system due to legal issues. So here I would basically show you with the account entity, how you can dynamically render a entity form based on condition using Liquid.

Step 1 : Create a Blank Web-Page and set it up in the Portal Navigation

Go to CRM –> Portals –> Web Pages –> New


As you can see, I have created a Web Page with template as Blank Page. Notice carefully that I have not set any entity form or entity list. This is because I am going to set those up dynamically depending on conditions.

Now login to the portals as admin contact and then include this web page in the Navigation.



Clicking on Loan Status gives an empty page because we are using the blank page template.

2. Setting up of Entity forms

Now to mock up the previous scenario, I have created two forms for account entity.

  • Loan Request Admin Form
  • Loan Request General


Create Two entity Forms in CRM based on these two forms.



3. Set up the forms Dynamically using Liquid.

Login to the portal using the admin contact and edit the Copy content of the Loan Status Page.


Enter the below Liquid Code in the editor.


Pasting the same code inline







The code is pretty simple. All it is doing is checking if the logged in portal contact is a power contact, then load the admin form. The general form is always loaded by default

Save it and now when you refresh the page, you would see the power user is able to see both the forms. Using the same construct, you render forms dynamically based on business conditions.

–Dynamically show/ hide entity forms in Dynamics 365 portals (ADX portals) depending on Business Logic using Liquid templates

Dynamics 365 (ADX) portal Show the top record from an entity view based using query filters in Dynamics 365 portals (ADX portals)

This is one more of my recent articles on ADX portals and this blog I am going to write on how to select the topmost record from an entity view using query filters.

Can’t depict the exact business scenario here but probably an example will get you started on how to get started with the query filters.

So let’s take an example here – What if someone asks you to print the the details of an employee with the highest salary from a specific view?

Let’s assume there we are leveraging the Contact table in CRM for Employee.

And the view I select is “Active Contacts” view.

Schema name of the salary field in the contact table – “new_salary”

In CRM, I created an Entity List called “Contact List” with a view “Active Contacts”


In the Portal side, in the Copy field just paste the below code.

Employee Name: },  Salary: }

The code is pretty simple. I load the entity view “Active Contacts” from the Entity List “Contact List” that I created in the previous step.

The important part is the code highlighted in yellow.

I just take the output of view and then order by salary descending (default order is ascending) and in the next line I just take the top record from there.

That’s all. I now just print out the Employee Name and the Salary of the employee. Not a real world example but probably helps you get the idea.


Create a HTML table dynamically from Entity List in Dynamics 365 portals (ADX portals)

After my recent posts on ADX portal, I came across a question on how to dynamically load an entity list in a web-page. For people knowing on how to use Liquid, basically the user was trying to render an entity list using the below syntax.



Unfortunately the entire entity list will not render like this. Rather if the entitylist loads successfully, it would execute anything within the entity list block.

So if I write something like below.


Entity list Loaded successfully


It would render “Entity List Loaded Successfully”

So is there no way. Off-course, where there is will, there is a way.

So I decided to try the below approach. Please note that code does not give the entire solution as you would need lot of styling to achieve the final goal but this can definitely get you started.

Step 1: Create a web-template

The first step is to create a web-template. Since I would creating the HTML table dynamically, I require a web-template.

Go to CRM –> Portals –> Web templates

Select New and then the new template screen would be presented. Below is the screenshot of my template.


I have named id “Custom Grid Template”. Don’t worry about the source. Here it is below for full reference.







The code covers most of the scenarios that you are going to need to render a HTML table from EntityView or EntityList. Let’s run through all the highlighted parts.

  • First an entitylist is loaded with the statement :
  • Second I take the default entityview of the entitylist. You can load the view with a specific name as well.
  • In third highlighted section, I write code to create the header.


  • Pretty simple isn’t it. In the next highlighted rows, I first traverse through the existing rows of the view and find the attribute for each column using
  • The interesting part is checking for the attribute type


Till this point, I was OK. However to be honest, I was completely stuck on how to identify EntityReference and picklist.

And finally this came my to rescue.

A bit nerdy but awesome it is.

Step 2: Load the web template dynamically in the webpage

Below is the code for the same.


And once you are done, below is the HTML table rendered dynamically. Off-course it is raw, but with a bit of styling it can look great.



Please visit orignal page

Show the top record from an entity view based using query filters in Dynamics 365 portals (ADX portals)