Restore failed App is locked by User

In this post, we will look at the error message “Restore failed App is locked by User”, e.g. Restore failed. ‘My Simple App’ is locked by System Administrator. This happens when you are in the Power Apps maker, and you select a previous version of your app to restore. You then get this message: Ensure you do not have the Power Apps maker open in another browser tab. If you … Continue reading Restore failed App is locked by User

DevOps and ALM with Power Platform Actions for GitHub

Power Platform Actions for GitHub are a powerful way to implement DevOps and ALM strategies in your Power Platform deployments. In this post, we will take a look at these GitHub actions, and go through how we can use them in a real-world situation, by connecting to a Power Platform model-driven app and deploy the code from one environment to another. The Power Platform Actions for GitHub can be found in … Continue reading DevOps and ALM with Power Platform Actions for GitHub

Intro to Power Apps Portals Web Roles and Table Permissions

In this post, we will look at Power Apps Portals Web Roles and Table Permissions how they are used. We will go through an example of displaying a list of Dataverse records. First, let’s create a new portal called Company Jobs. The goal of the website is to display content to both internal authenticated and external non-authenticated users. The difference is that internal people will see some more information on the … Continue reading Intro to Power Apps Portals Web Roles and Table Permissions

Use the Three-Screen App Template to Build a Canvas App

In this post, we will look at the Power Apps Maker functionality to create a 3-screen app from a Dataverse table. Go to https://make.powerapps.com/ and select Create->Dataverse: Ensure Dataverse is selected under Connections and click Create: Now choose a table. We will select Accounts: And click Connect in the bottom right: Our app is created. Click the Play button in the top right: The app is launched. We see some pieces … Continue reading Use the Three-Screen App Template to Build a Canvas App

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

Adding Fields to a Data Table Data Source in Power Apps Canvas Apps

In this post, we will look at how to add fields to a data table data source in canvas apps. First, select the data table on left or center, then go to Properties and Edit Fields on the right: Click Add Fields: Select the field to add and click Add: The field will be added:  

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