• Using fetchXml with Xrm.WebApi.retrieveMultipleRecords in Dynamics 365 V9

      Jared Johnson, 12 July 2018

      Dynamics 365 V9 includes the new Xrm.WebApi helpers that allow you to access the Dynamics 365 Web API without having to create your own requests. The Xrm.WebApi.retrieveMultipleRecords method allows you to easily retrieve records, but the examples on MSDN only demonstrate how to use this using the O

      Read the full article here
    • Dynamics 365 Detect Unified Interface from JavaScript

      Jared Johnson, 05 June 2018

      With the introduction of the new Unified Interface in Dynamics 365, you may want to be able to detect if the current form is being rendered in the Unified Interface or not in JavaScript. It is possible to do this with an internal function: Xrm.Internal.isUci(). This function will return true if call

      Read the full article here
    • Preventing Duplicate Email Signatures in Workflows in Dynamics 365

      Jared Johnson, 03 May 2018

      When generating emails automatically in Workflows, you often will want to include a signature. It is possible to retrieve the Email Signature entity in a Custom Workflow activity and return the HTML which can be added into the email. While this will appear to work fine if the email is also sent in t

      Read the full article here
    • Triggering Scheduled Azure WebJobs via a Dynamics 365 Web Hook

      Jared Johnson, 06 April 2018

      Web Hooks were introduced in Dynamics 365 V9. In the documentation for Web hooks, it is recommended to use them with Azure Functions, but what if you have existing Azure WebJobs? For example, WebJobs that are designed as a scheduled service to run complex rollup calculations on recently updated reco

      Read the full article here
    • Dynamics 365 V9 Contact Records Not Opening from All Contacts View

      Jared Johnson, 15 March 2018

      In the Dynamics 365 V9 update there is a new view for Contacts – the “All Contacts” view. However, attempting to open existing contacts from this view only results in the new contact form opening instead. If we look at the FetchXml for this view we can see that this view is missing the contactid att

      Read the full article here
    • Workaround with Report Authoring Extension Connection Issues with Dynamics 365 V9

      Jared Johnson, 09 March 2018

      Now that Microsoft are enforcing TLS1.2 for Dynamics 365 V9, a bunch of older tools will no longer be able to connect to CRM. This currently also includes the Report Authoring Extension for SQL Server Data Tools that allows creating FetchXml reports, as there has been no new version released for V9

      Read the full article here
    • Dynamics 365 V9 - SharePoint Integration Now Displays Folders Again

      Jared Johnson, 07 February 2018

      With the release of the Server-side Sync SharePoint integration with Microsoft Dynamics CRM 2013, one of the features that did not carry over from the list component was displaying of SharePoint folders. If a document folder contained say 4 folders each with its own documents, in the Documents area

      Read the full article here
    • Dynamics 365 V9 JavaScript Web Resource Dependencies

      Jared Johnson, 05 February 2018

      Prior to the V9 update to Microsoft Dynamics 365, if a JavaScript Web Resource was dependent on another, both had to be added to the forms scripts or on a ribbon button command in the correct order.  Forgetting to add a required JavaScript library to the form was one of the most common errors f

      Read the full article here
    • Bookmarklet to Open New View Editor from a Solution in Dynamics 365 v9

      Jared Johnson, 10 January 2018

      One of the most welcome new features in Dynamics 365 Version 9 is the new view editor, which has improvements over the old view editor such as being able to add and reorder fields via drag and drop. However, it is only available inside the App Editor, which means if you try and edit a view within a

      Read the full article here
    • How to Use C# 7 Value Tuples in ASP.NET MVC

      Jared Johnson, 10 October 2017

      With the release of Visual Studio 2017, I wanted to use the new Value Tuples that were introduced in C# 7 in a MVC project I was working on. However, I ran into some issues which I discuss below. Firstly, Value Tuples are included with .Net 4.7, but if the project’s target framework is lower than th

      Read the full article here
    • Dynamics 365 Bookmarklet to Test CRM for Tablets

      Jared Johnson, 14 July 2017

      When doing CRM customisations, you might want to quickly check out how your changes have also affected the CRM for Tablets/Phones app (MOCA). To achieve this I have created a bookmarklet that that can open the tablet app in the browser.To add the bookmarklet, create a new bookmark and set the URL to

      Read the full article here
    • Preventing Idle Timeout in Triggered Azure WebJobs Jobs

      Jared Johnson, 15 May 2017

      After setting up a Triggered Azure WebJob, you may run into the confusing error message in the logs after running it of “…aborted due to no output and CPU activity for 121 seconds. You may increase SCM_COMMAND_IDLE_TIMEOUT setting to solve the issue”. This is confusing as the SCM_COMMAND_IDLE_TIMEO

      Read the full article here
    • Resolving Cryptography issues with the Dynamics CRM SDK in Azure Web Apps

      Jared Johnson, 18 December 2015

      When attempting to run applications that use the Dynamics CRM SDK in Azure Web Apps, you can get an exception when the app is trying to connect to CRM that looks like this: “ERROR: System.Security.Cryptography.CryptographicException: The data protection operation was unsuccessful. This may have been

      Read the full article here
    • Subgrid Visual Errors when Hiding a Tab or Section in Dynamics CRM 2013-2015

      Jared Johnson, 21 July 2015

      During an upgrade from a CRM 2011 system to CRM 2015, testers reported that some subgrids in the system were occasionally having strange visual errors where the buttons were being pushed down into where the field labels were displayed, and if the subgrid was in a labelled section the section name wo

      Read the full article here
    • Microsoft Azure API App Invalid Swagger error

      Jared Johnson, 02 June 2015

      In trying out the new Azure API apps by converting an existing ASP.NET Web API, you can run into this error as soon as you publish your API to azure for the first time and check out the API definition blade: Trying to add the API as an Azure App client can get you nicer errors like: "Found operat

      Read the full article here