Using ExecuteMultiple C# in Dynamics 365

ExecuteMultiple in Dynamics 365 is used to execute multiple requests, as opposed to executing requests one at a time. For example, if you wanted to create 5 contacts in Dynamics 365 through code, you could call Create 5 times, or you could call ExecuteMultiple once, with the 5 entity objects defined. This is useful if network latency is an issue. Let’s create a console app that creates 5 contacts using … Continue reading Using ExecuteMultiple C# in Dynamics 365

Using Upsert In C# Dynamics 365

In this post we will look at how to use Upsert to insert/update a record in Dynamics 365. Let’s say we have a contact in the system, Bob Smith: We would like to do an upsert on Bob Smith. To do this, we need to find his record using a key, so the system can decide whether to do the insert or update. To do this, we use Alternate Keys. … Continue reading Using Upsert In C# Dynamics 365

Changing How Visualizations Interact In Power BI

In Power BI, visualizations can interact with each other based on user selections. For example, let’s say we have 2 visualizations on a Power BI report, Sales by Account and Sales by Name: If a user selects a name on the right, it will filter the account on the left, as a user belongs to an account. Selecting Darren Parker filters the account to Woodgrove Bank: Now let’s say we … Continue reading Changing How Visualizations Interact In Power BI

Passing Context from a Toolbar Button in Dynamics 365 UCI

In this post, we will look at how to pass context from a toolbar button in Dynamics 365 in the Unified Client Interface (UCI). Let’s add a custom button to the Contact form and call a JavaScript which will pass the context. First, let’s create a new JavaScript web resource: We will pass the context as the first parameter: Code: function UpdateFN(context) { var a = context.getAttribute(“firstname”).setValue(“UPDATED”); } Save and … Continue reading Passing Context from a Toolbar Button in Dynamics 365 UCI

Changing Autonumber Prefixes in Dynamics 365

In Dynamics 365, there are some entities which use auto-number prefixes that can be configured. These entities are: Contracts Cases Articles Quotes Orders Invoices Campaigns Categories Knowledge Articles To configure this, go to Setting->Administration and click on Auto-Numbering: Here you will see tabs for each of the options: Let’s look at Orders. The next number is ORD-1002- and then a set of 6 characters. The suffix is used to guarantee … Continue reading Changing Autonumber Prefixes in Dynamics 365

Creating a New Branch in GitHub from Visual Studio

In this post, we will look at how to create a new branch in GitHub from Visual Studio. Method 1 – Creating a Branch in GitHub.com Let’s look at our GitHub repo for out app called my-console-app: In Visual Studio, we have a project that points to this GitHub repo: In the bottom right, we see we are connected to the Master branch: From GitHub, we can create a new … Continue reading Creating a New Branch in GitHub from Visual Studio

Creating a New Branch in GitHub

In this post we will look at how to create a branch in GitHub. In previous posts, we: Installed Git on Windows using SCM Signed up for GitHub Installed GitHub Desktop for Windows Cloned a Repository from GitHub. We now have a local repo in Windows Made changes and committed to our local Master Published our changes to GitHub In this post, we will create a new Branch, Commit and … Continue reading Creating a New Branch in GitHub

Using formContext in Dynamics 365

In Dynamics 365, the formContext provides a reference to a form or form item through JavaScript. The formContext is part of executionContext, and replaces Xrm.Page which is deprecated in version 9+ of Dynamics 365. The form context object model looks like: Let’s go through an example of using the formContext. Let’s add a script to a form when the form loads, for example, a Contact entity form. Let’s add a … Continue reading Using formContext in Dynamics 365

Download the Common Data Model Poster

Quick link to the Common Data Model poster on the CDM GitHub Repository. A nice one to print out. “Integrate and Disambiguate Data with the Common Data Model” –  https://github.com/Microsoft/CDM/blob/master/docs/CDMPoster_a3.pdf  

Add a SharePoint Site to Teams

In this post, we will look at how to add a SharePoint site to Teams. Sign into Teams, and go to a team. In the right you will see a +: Here we can select the type of tab we want to add: Search for SharePoint. The first one is “View pages and collaborate with lists”, the second is “Add a tab for a SharePoint news article or page”: We … Continue reading Add a SharePoint Site to Teams