Dynamics 365 trials now include portals!

If you create a new Dynamics 365 trial since around the holiday time frame you may have noticed that a portal can be configured as part of this trial. If not read on for instructions on how to configure your portal as part of the trial.

Once you have created your Dynamics 365 trial, (suggested to select the “All of these” option when provisioning your trial) you should be taken to your Dynamics 365 instance.

trial_options

You will need to get to the Dynamics 365 Administration Center to be able to configure your portal as part of the trial. You can do so by navigating to the Office 365 Admin Center or by directly going to the following URL – https://port.crm3.dynamics.com/g/manage/index.aspx. You may need to change crm3 to whichever region your instance resides in, ie CRM for NA/USA, CRM3 for Canada – the full list of regions can be found here – http://www.xrmcoaches.com/2016/01/current-list-of-dynamics-crm-online-regions/.

Once into the administration center, select Applications from the top and you should have a number of applications listed if you selected the “All of these” choice when provisioning your demo including a Not Configured portal! Highlight the portal application called “Portal Add-On” in the list and select Manage.

portal_applications

You should now be able to continue configuring your portal with your desired configuration for your demo or trial.

If you have not had a portal add-on added automatically to your trial you can still request a trial key from the the CRM Managed Trial site – https://crmmanagedtrials.dynamics.com/.

Thanks to Adoxio’s Kunal Tripathy for pointing out this great addition to trials.

Note: This post also appears on Adoxio Business Solutions Team Blog.

Using your Dynamics 365 portal in an iframe

There might be certain scenarios where you want to utilize certain parts of Dynamics 365 portals functionality within other applications. Most often this is where another content management system (CMS) is already in place but you want to enhance its abilities and add new functions that work with your CRM. Instead of writing customizations in that CMS it can be easy to configure your desired functionality with the out of box functionality of Dynamics 365 portals.

With Dynamics 365 portals through you might run into a issue with embedding the site in an iframe. If trying to embedding your portal in an iframe you will end up with a blank frame. Opening up Chrome’s developer tools and view the console you will notice the following error providing a hint as to the issue.

Refused to display 'https://mps155013.microsoftcrmportals.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

X-Frame-Options is part of the HTTP response header and can be used by the web server to control who can display your content directly in an iframe. This is important if you want to prevent any sort of embeds of your site as well as limit it to an allowed list of sites. You can read more about X-Frame-Options on the Morilla Developer Network Documentation.

The following are the X-Frame-Options directive options:

  • DENY – blocks all iframe requests
  • SAMEORIGIN – allows iframe’s from the origin site
  • ALLOW-FROM https://example.com/ – allows iframe’s from the URL

You can manipulate the X-Frame-Options of your Dynamics 365 portal through the site setting HTTP/X-Frame-Options, inserting in the value one of the options above. New portals should include the setting by default in all portals with the default value set to SAMEORIGIN. If you do not have the site setting from an older portal that has upgraded, you can add it but it requires the supporting portal code version (v8.2).

Some other considerations when embedding your portal will also be the display of the page. Most likely the site your embedding into will already have a header with navigation and also a footer, so it might not make sense to include these type of components on the pages your iframe will display.

You can handle this in various ways with the portal, either through simply putting some CSS only on iframe pages that hide elements, keep in mind that the Bootstrap CSS uses the width of your frame and not the parent window so you may be in a mobile layout inside the iframe. Another option is to use the Page Template with the Use Website Header and Footer when using the Web Template type. Leaving this option set to false will only render the contents of the liquid template, it will leave out all portal scaffolding like Bootstrap CSS, and JavaScript libraries. If you need those type of components you will need to add them back through your own references in your web template. The web template option is great for data display type options, if you want to use entity form or list then you will require that portal scaffolding for those components to work.

usewebsiteheaderfooter

There is a hidden rewrite template that does not have a header or footer you can use if your only need is an entity form. Create a new page template with the type Rewrite and set the Rewrite Url to ~/Areas/Portal/Pages/Form.aspx. This page template is used by entity list to display modal dialog forms for entity list create and edit functions. This page template if you look at the v7 code only contains an entity form control and sets the content controls for header and footer to blank, it does not even include the page copy.

norewrite

Based on the functions you want to accomplish and the security you require for the content in your iframe you will need to select the best method for displaying your page.

What’s New in Dynamics 365 portals

A number of the Dynamics 365 application services; Field Service, Project Service and portals, all became generally available this week following the release of Dynamics 365 earlier this month. These all offer a number of improvements and new features from their previous iterations under Dynamics CRM. Previously called CRM portals, now Dynamics 365 portals, has received some significant updates, even some functionality that starts to bring the 3 application services together with Project and Field Service functionality now in some portals. Let’s take a look at some of the largest changes in this release:

  • Multilingual support for a single portal
    Any of the now 43 languages can be configured on a portal and no longer requires a completely separate portal service for each language.  This functionality also significantly differs from how multilingual support was included in the legacy Adxstudio Portals. You will find a new entity, Website Languages that adds an additional layer, this instead of duplicating the entire web site using the old web site copy tool.  The page copy section is no longer directly on the web page information form but now available through a localized content relationship which will display the web page in a new content mode and other content data entities like content snippet or site settings also have new relationships to the website language.

    mlp_webpage
    There are also new liquid extensions to support this functionality within your own templates, website.languages will provide a collection of all the language items, pages.languages is a list of languages for the current page available, and website.selected_language will identity what language the site is currently being shown in.
  • Charts displayed in the portal
    You can now embed your CRM/Dynamics 365 charts directly on the web with a new liquid extension.  For an example of charts, if you install the latest partner portal there is a new web template called “Partner Dashboard” that provides an example of embedding multiple charts, entity lists and other components on a single page to give a rich interface to portal users. The liquid extension makes it very easy to add a chart anywhere in a page, all you need is the chart ID and view ID the chart should use for its data source.

    {% chart id:"chart-guid-without-braces" viewid:"view-guid-without-braces" %}
    
    <!-- Est. Revenue by Est. Close Date (Day) - Opportunities Closing Next Month --> 
    {% chart id:"EB02E9AA-5580-E611-80D8-00155DFE75F9" viewid:"00000000-0000-0000-00AA-000010003002" %}
    

    portalcharts

  • Content Access Level Security for Knowledge Management Articles
    Content Access Level or CAL is a feature that has been added to allow for securing access to knowledge articles to different groups of users. In Dynamics 365 with a portal installed you will find some sample CALs but you can also define your own and associate them to contacts and articles. Article content will be secured regardless of how you try accessing the content, either browsing via navigation elements, direct URL or via the Portal Search, all will respect the security rules defined by the CAL.
  • Project Service and Field Service Portal Extensions
    If you provision a new Partner Portal and have either Project Service or Field Service installed you will see some new options available that allow you to enable portal functionality for these components, there are also new actions if you have an existing portal to install the new portal extensions.

    provision_psaThese extensions bring some components to the portal, with PSA your able to view customer and partner related projects or resources. With Partner Field Service extension you can see related field service agreements, assets, service requests, and work orders.
  • Partner Portal Improvements
    There are a number of improvements and new functionality added to the popular partner portal including a new partner onboarding/application, multi-partner collaboration, and also deal registration.

These are all great improvements for this release and continue to look forward to further updates with the monthly updates to Portal Service in the new year. If you want to check out these features and more you can try the latest version yourself by requesting a trial.

For more information about what’s new for Field Service and Project Service a breakdown is available on the What’s New for Dynamics 365 Help and Training site.

Note: This post also appears on Adoxio Business Solutions Team Blog.