Posts

Self-Hosted agent on Azure Pipelines

Image
Summarization from Microsoft If your pipelines are in Azure Pipelines, then you've got a convenient option to run your jobs using a   Microsoft-hosted agent . With Microsoft-hosted agents, maintenance and upgrades are taken care of for you. Each time you run a pipeline, you get a fresh virtual machine for each job in the pipeline. The virtual machine is discarded after one job. Microsoft-hosted agents can run jobs  directly on the VM or in a container. Azure Pipelines provides a pre-defined agent pool named  Azure Pipelines  with Microsoft-hosted agents. For many teams this is the simplest way to run your jobs. You can try it first and see if it works for your build or deployment. If not, you can use a self-hosted agent. Self-hosted agent An agent that you set up and manage on your own to run jobs is a  self-hosted agent . You can use self-hosted agents in Azure Pipelines or Team Foundation Server (TFS). Self-hosted agents give you more control to install dependent software needed

If all CRM reports calendar controls stop working suddenly and are stuck "loading..." in Dynamics 365 CRM Onpremise Version 9.x , read the article for a solution

Image
 When you click a Calendar on the SSRS reports in Dynamics 365 CRM and does not see date pickup panel but only "loading", it is about;  Default CRM organization has recently been disabled. Activate it, all start working perfect again. Technical Details, If you open the  Developer Tools in Chromium based (Edge or Google Chrome) and look at Console tab, You will see error mesages from  Reserved.Reportviewer.....datepicker.js    that state; Uncaught ReferenceError: HideUnhode is not defined at onLoad (Reserved.ReportView....) and a warning about  Resource interoreted as Stylesheet but transferred with MIME type text/html... in Microsoft.Reporting.WebFomrs.calendar.css. on the other hand,  CRM Engine already throws an error and records message under EventViewer at Front End Server which contains meaningful information about the root cause of the issue.  good luck...

Dynamics 365 CRM Onpremise Version 9.x throws error once importing SSRS reports (RDL) - The data source 'MSCRM_DataSource' cannot be found.

Image
 Hello, If you facing an issue while importing rdl (SSRS Report file) to Dynamics 365 CRM on-premise  as stated below; Microsoft.Crm.CrmReportingException: An error occurred while trying to add the report to Microsoft Dynamics 365. Try adding the report again. If this problem persists, contact your system administrator. System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The data source 'MSCRM_DataSource' cannot be found.  Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceNotFoundException: The data source 'MSCRM_DataSource' cannot be found. Please ensure that Embeded DataSource name is MSCRM_DataSource  and  Use Shared data source reference is also has "MSCRM_DataSource" enjoy.

Developing JWT (JSON web Token) based authentication

Image
Hello, You are going to see how we can implement custom authentication mechanism to our system.  Source code contains necessary projects (Web API, Console Application) in C# with  MVC patern so supposing you have basic information on that areas. Source code is here : https://github.com/TheMaty/JSONWebToken-Custom-Authorization I use Visual Studio 2019 in the study. Solution structure; AuthorizationServer project is ASP.NET Web Application with Web API template (which is MVC). It accepts any requests from client device with Client Id and Client Secret and generates Bearer token respectively. BackEndServer project is ASP.NET Web Application with Web API template (which is MVC). It acceptes bearer token, validates it then execute order that comes in request body (mostly JSON format)  BearerTokenRequestor project is a console application to simulate request send and recieve (Postman can already be used for that purpose) CryptoRandomDataGenerator project is a console application to create C

Microsoft Power Apps Portal integration with Dynamics 365 CE On-Premise - Step By Step Guide

Image
 Hello, It has been quite long since I did not post any guides with you. Today, I am going to share a PoC of mine result with detailed screenshots as much as possible.  You will see how we can easily position Power Apps Portal in front of Dynamics 365 CRM ( CE ) Engine 9.x on-premise edition. You are going to see following subjects in the study; Solution generation for the scenario in Dynamics 365 CRM on-premise  Create Solution Create Custom Entity Add Existing entity to a custom solution 1:N relation Form creation for Portal visibilities for portal specific fields Microsoft Common Data Service (Microsoft Dataverse) - an environment -creation Solution generation for the scenario in Dynamics 365 CRM on-premise  Microsoft Power Apps Portal creation (Starter Portal) in the environment Microsoft Dynamics 365 On-Premise customization for PoC Scenario implementation Reflecting Dynamics 365 On-Premise solution to CDS (Microsoft Dataverse) - to the environment- Aligning Microsoft Power Apps P