Signing up for a Microsoft Cognitive Services Subscription Key (Face)

To sign up for a Microsoft Azure Cognitive Services API Key for the Face API, go to https://azure.microsoft.com/en-us/services/cognitive-services/face/ and click Try Face: Click to sign in: Enter a name and click Create: Open the resource: Click Grab your keys and copy your keys for later use: Note the endpoint for the keys. My endpoint is: https://northeurope.api.cognitive.microsoft.com/face/v1.0 You can now start building Azure Cognitive Services applications.

Dowload Dynamics 365 Entity Record Photo in C#

In Dynamics 365, records can have photos attached to them. For example, let’s say we have a custom entity called Guests, which have the entity photo attached: In this post, we will create a C# app to download all the images on this entity using C#. First, create a new console app in Visual Studio: Install Xrm Tooling: There are a few fields related to the entity image. These are: … Continue reading Dowload Dynamics 365 Entity Record Photo in C#

Sample Data – Orders with Order Date and Ship Date

Below is a table of orders data that can be used for test reporting such as Power BI. Order Number Amount Order Date Ship Date 1 100 1/1/2017 2/1/2017 2 150 2/1/2017 2/10/2017 3 200 3/2/2017 3/15/2017 4 250 4/3/2017 4/21/2017 5 200 1/1/2017 3/1/2017 6 300 10/1/2017 10/3/2017 7 110 1/1/2018 2/1/2018 8 160 2/1/2018 2/15/2018 9 210 3/5/2018 3/20/2018 10 280 4/6/2018 4/22/2018 11 210 1/2/2018 3/1/2018

Creating a New Service Task in Field Service for Dynamics 365

To create a new service type task in Field Service, go to Field Service Settings and select Service Task Types: You will see a list of Service Task Types: Click New to create a new one: Enter the name, duration of the task and description: This can then be added to the work order:  

Power BI – Year over Year (YOY) Reports using SAMEPERIODLASTYEAR

In Power BI, we may want to compare periods with our data to create reports such as year over year comparisons. Power BI offers several DAX time intelligence functions. In this post we will look at SAMEPERIODLASTYEAR. Let’s say we have an Orders table that contains orders for the last 2 years. The table contains an Order Date and a Ship Date: We also have a standard Dates table. Now let’s … Continue reading Power BI – Year over Year (YOY) Reports using SAMEPERIODLASTYEAR

Migrate USD from Web Client to Unified Interface with Migration Assistant

In Unified Service Desk, there is a new tool that allows you to migrate your USD configuration from the Dynamics 365 Web Client to the new Unified Interface. In this post we will go through a migration, using the “Web Client – Unified Interface Migration Assistant” tool. In our USD environment we see the following solutions. We are running USD 4.0: With hosted controls using CRM Page and KB Control: … Continue reading Migrate USD from Web Client to Unified Interface with Migration Assistant

Unified Service Desk – Unified Interface Page vs CRM Page

Below is a comparison of the pre-defined actions and events installed when a new hosted control is created. CRM Page UII Actions AssociatedView Close CloseActive CloseAndPrompt default DisableToolbarButton EnableToolbarButton Find FireEvent GetSelectedCount GetSelectedIds GoBack GoForward GoHome LoadArea lookupinfo MoveToPanel Navigate New_CRM_Page Open_CRM_Page Popup RealignWindow Refresh ReRoute RunScript RunXrmCommand Save SaveAll SaveAndClose ScanForDataParameters SetSize SetUserCanClose ToggleNavigation ToggleRibbon WaitForComplete WaitForData Events ActiveClosed BrowserDocumentComplete PageLoadComplete PopupRouted RefreshRequested Saved Unified Interface Page UII Actions … Continue reading Unified Service Desk – Unified Interface Page vs CRM Page

Dynamics 365 WebAPI and C# – Configuring Sample Code

Microsoft has downloadable samples that demonstrate using the Dynamics 365 WebAPI with C#. The samples contain examples of using HttpClient getasync, sendasync with JSON. The samples can be downloaded at https://code.msdn.microsoft.com/CRM-Web-API-Functions-and-a44416bb, with the code walkthrough at https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/web-api-functions-actions-sample-csharp. In this post we will configure the code to run with Dynamics 365. First, click to download: You will see: Open the solution in Visual Studio: You will see: In NuGet, click Restore in the … Continue reading Dynamics 365 WebAPI and C# – Configuring Sample Code

Bing Custom Search Hello World in C#

In this post, I will go through how to use Microsoft Azure Cognitive Services to create a Custom Bing Search app in Visual Studio. The first thing you will need is to create a custom search instance and get API keys. Once you have done that, create a new console app in Visual Studio: You will see: Add NewtonSoft.Json through NuGet: Add the code. This is built on the example … Continue reading Bing Custom Search Hello World in C#

Creating a Bing Custom Search Instance with Keys for Bing API

In this post, we will create a new Bing Custom Search Instance that we can use to access the Bing Custom Search API. This will enable us to access the Bing Search API from apps we build, thereby opening our apps to the power of Bing Search. First, go to https://www.customsearch.ai/ and sign in: You will see the steps below. Click Create new instance: Name the instance and click OK: You … Continue reading Creating a Bing Custom Search Instance with Keys for Bing API