The Trick to Updating Custom Lookups using the Dynamics 365 Web API

In Dynamics 365 Power Apps, when updating a custom lookup field using the Web API, you may run into an “undeclared property” error. Let’s look at how to get around this so you can update custom lookups through the Web API. This tip comes from one of my favorite devs,¬†Joseph Duty! There are a couple of scenarios we will cover here. The first is when the entity is an activity, … Continue reading The Trick to Updating Custom Lookups using the Dynamics 365 Web API

Using EasyRepro for Automated UI Testing in Dynamics 365 Power Apps

EasyRepro is an automated UI testing API from Microsoft tool to test Dynamics 365 Power Apps. This is useful if you are performing repeated UI tests and would like to automate these. To use EasyRepro, go to the GitHub repository https://github.com/microsoft/EasyRepro and download or clone the code: I will download it: After downloading the ZIP file, right-click -> Properties and unblock: Unzip and you should see something like below. Open … Continue reading Using EasyRepro for Automated UI Testing in Dynamics 365 Power Apps

Hiding Form Header and Footer Through JavaScript in Dynamics 365 Power Apps

In this post, we will look at how to hide and show various elements of a Dynamics 365 model-driven Power App form, including the header and footer, using JavaScript. First, let’s take a look at the elements of a form based on the formContext. The formContext provides us with a headerSection and a footerSection. The header is then divided into 3 parts, header command bar, header body, and header tab … Continue reading Hiding Form Header and Footer Through JavaScript in Dynamics 365 Power Apps

How to Get the Direct URL of a Web Resource in Dynamics 365 Power Apps

Let’s look at how to get the direct URL of a web resource in Dynamics 365 Power Apps. This can be useful if you have a stand-alone HTML web resource, for example. First, let’s create a web resource in the Power Apps Maker: We will create an HTML web resource. On saving the Web Resource, we see the URL is provided: And clicking on the link will open the URL: … Continue reading How to Get the Direct URL of a Web Resource in Dynamics 365 Power Apps

Getting Plural Names of Entities using WebApi

In Dynamics 365 / Power Apps, entity names can have various different plural extensions, such as “s”, “es”, “ies” etc. So when you’re writing code and you need the plural name of an entity dynamically, knowing only the singular name, how do you get it to ensuring you’re using the right name? You can use Xrm.Utility.getEntityMetadata to get it. For example, with accounts below: This produces: A more interesting example, … Continue reading Getting Plural Names of Entities using WebApi

Form Designing and Screen Resolution in Model-Driven Power Apps

When building model-driven Power Apps, one useful feature in the Power Apps form designer is the ability to view the form being designed in various different resolutions. To use this, open a form in design mode. Below we are viewing the Account Main form. You can see at the bottom of the designer, we are displaying Desktop (1920 x 1080): Clicking on this, we see there are other options: Desktop … Continue reading Form Designing and Screen Resolution in Model-Driven Power Apps

How Patching of Solutions Works in the Power Platform

In the Microsoft Power Platform, there is a concept of patching solutions. Patches are useful when you want to deploy code from one environment to another. With patches, you would have already released a solution from one environment to another, and then be in a situation where you need to deploy a fix or enhancement to that solution. Instead of updating the original solution and deploying that full solution again, … Continue reading How Patching of Solutions Works in the Power Platform

Custom Actions in JavaScript with Output Parameters in D365 and PowerApps

In this post, we will look at how to retrieve output parameters from custom actions in the Dynamics 365 and Power Apps from JavaScript. Firstly, I blogged previously about how to run custom actions in Dynamics 365 / Power Apps using Xrm.WebApi.online.execute. It appears in some conditions, this functionality does not return output parameters from an action. Issues I have found specifically include using this with Unified Interface / UCI … Continue reading Custom Actions in JavaScript with Output Parameters in D365 and PowerApps

Using Configuration Pages in Dynamics 365 Power Apps Solutions

Configuration pages are used in Dynamics 365 / Power Apps solutions so developers can provide some light documentation on what a solution contains. This might be useful for tracking what is deployed between environments, or what functionality a solution contains. To use configuration pages, first set up a new solution. Note the Configuration Page only has the option “None”.¬†Let’s click Create to save the solution: Next, let’s create a new … Continue reading Using Configuration Pages in Dynamics 365 Power Apps Solutions

New Features – Common Data Service, SQL and Power BI !!!

One of the cool recent announcements by Microsoft is the ability to write T-SQL queries against a Common Data Service database using SQL Server Management Studio. This also includes the ability to connect to the Common Data Service using Direct Query in Power BI. Let’s look at how to enable this preview feature and how to use it. Note this is a preview feature from Microsoft, so expect things to … Continue reading New Features – Common Data Service, SQL and Power BI !!!