There could be different scenarios where client may want to view, access, or pass data to external pages from within Dynamics CRM.
External pages refer to the pages that are not part of Dynamics CRM. It can be defined as pages that you can access via an internet (with an extension like .aspx, .html, etc).
In Dynamics CRM, we always have an option to create and use HTML pages through webresource but sometimes there is requirement to have an external page for a user to work with it. Users can have different requirements for it;
- They may only require to only see the pages.
- They may require to see and also may want to interact with page.
- They may require to pass the CRM data to external page.
In this blog we have consolidated all the different areas in Dynamics CRM where we can actually add external pages. This may help you to choose right area to display your page in order to access external pages from Dynamics CRM.
There are 5 different areas mentioned below;
1. IFRAME on entity forms:
The form of entity is one of the areas where we can add/show an external page. You can add an Iframe control on the form and you can pass the URL for that Iframe. So when you open a record of that entity the external page gets loaded into that Iframe.
In some situations, you might want to pass some data from Dynamics CRM to external page.
You can check the below option to pass this information to page and on the external page you will get that information from the querystring (Record GUID and Object type code).
In same way, you can pass the information to page. But in this case you will get only organization language, user language, and organization unique name. You won’t get record GUID and entity type code in this case since we are opening through a dashboard.
Data passed to querystring: organization language (Orglcid), user language (userlcid) and organization unique name (orgname).
The navigation area of any entity is the one area where we can add a link to open external page.
Edit form and click on Navigation to enable the navigation pane of form to edit it.
From this screen, we can add external page to navigation area by using “Navigation Link” button.
We can also add link to open URL from Sitemap area. We have to edit the <subarea> to open URL.
<SubArea Id=”Inogic_sitemap” Url=”https://www.inogic.com” Description=”Inogic” Title=”Inogic” AvailableOffline=”false” PassParams=”true” Sku=”All” />
With this option we can pass Dynamics CRM data as a querystring to link. We have to add a “PassParams” attribute with value as “true” to Subarea element.
The ribbon is one area where we can open URL by clicking on ribbon button. We have to add button and need to define an action to open any particular URL.
You can find several articles on customizing ribbon. We have to modify the <RibbonDiffXML> element to customize the ribbon.
Below is the excerpted part from <RibbonDiffXML>,
<Url Address="https://www.inogic.com" PassParams="true" WinMode="0">
<CrmParameter Value="PrimaryControlId" Name="id" />
Similar to Sitemap, to pass parameters to URL we have to add “PassParams” attribute with value as true.
Data passed to querystring: We have so much parameters that we can pass to URL through querystring. We can pass CRM data using CrmParameter, we can even pass BoolParameter, StringParameter, DecimalParameter. For more information you can refer following link https://msdn.microsoft.com/en-us/library/gg328363.aspx .
This blog discusses about the different areas to use external pages from Dynamics CRM. Whenever you want to add an external page into Dynamics CRM consider all these areas and decide appropriate area to use your page.
Wait is over – Maplytics August Release now available – Try Today!