Posts

DevOps build pipeline for Retail deployable package

Image
 This article explains how we can create a DevOps build pipeline to create a retail deployable package that can be applied to an LCS demo box. The following details are for a full retail deployable package that can be applied to a Tier 1 LCS environment. Follow the standard steps to create a pipeline and choose 'Azure pipelines and 'vs207-win2016' as agent pool and specification respectively. Next, ensure that you have update source control details and pointed to the correct mapping. Add the following details under agent job. Choose Add MSBuild to the pipeline and choose the dirs.proj located on the root of the RetailSDK folder. Copy the Retail binaries. Copy the Retail packages Copy files to staging directory Publish artifacts to packages

Upgrading Retail SDK extension to latest

Image
In the past couple of months, there have been a lot requests for upgrading Retail from one version to another. In this post, I will be describing how to upgrade RetailSDK from one version to another. For this exercise I am upgrading from 10.0.18 to 10.0.20. Ensure that your current dev branch for 10.0.18 has been mapped to your local. Get latest and ensure that there are no pending changes.  Apply 10.0.20 update package to the environment. Navigate to https://lcs.dynamics.com/ Select the environment that you need to update Choose Maintain > Apply Updates Select the 10.0.20 service package released by Microsoft. Choose Apply This will kick-off the update process once complete you will be notified via email or you can refresh the page to view progress and details. Retail SDK 10.0.20 package To get the RetailSDK 10.0.20 package, navigate to the K drive (referred to as SourceRepo)  for an LCS demo box. This may differ depending on the environment. Sometimes it is in the C drive...

Connect to Dynamics 365 Common Data Service with OAuth 2.0

Image
Recently, I had a requirement to connect to CDS using OAuth 2.0 so that an AAD token can be generated without having to prompt a user for sign in. I have listed out the steps below to achieve this. App Registration Login to azure portal . Navigate to 'Azure Active Directory' > 'App registrations' > 'New registration' Enter the name of the app register and click 'Register' to create a new app registration Open 'API permissions' within the app registration, click 'Add a permissions' and choose 'Dynamics CRM' Select 'Delegated permissions', check 'user_impersonation' and click 'Add permission' Click 'Grant admin consent' Navigate to 'Certificates & secrets' and generate a 'New client secret'. Keep a copy of the client secret.  Navigate to overview and copy the 'Client Id/Application Id' Click Endpoints and copy the 'OAuth 2.0 token endpoint' Common Data Service...

Migrate from VS2015 to VS2017 for RetailSDK 10.0.11

Image
I recently upgraded RetailSDK from 10.0.10 to 10.0.11. RetailSDK can no longer be compiled with VS2015 from 10.0.11 as per an announcement from Microsoft.  These are the steps I followed to upgrade from VS2015 to VS2017 for RetailSDK 10.0.11. Follow this guide from Microsoft for more information; https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/retail-sdk/migrate-sdk Login to https://my.visualstudio.com and download VS2017 executable and install if not already installed. Open Visual studio installer and ensure that the following components are selected for installation; .NET desktop development Desktop development with C++ Universal Windows Platform development ASP.NET and web development Azure development Node.js development NET Core cross-platform development Ensure that the following Individual components have been selected C# and Visual Basic Rosyln compilers MSBuild Visual C++ ATL for x86 and x64 Visual C++ MFC for x86 and x64 Windows 10 SDK (10.0.10586.0) - for...