Getting the Selected Record in a Subgrid Using executionContext

In this post, we will look at how to get the selected record in a subgrid using executionContext. Note this will work on Editable grids, using the OnRecordSelect event. Consider the scenario where we have a Contacts subgrid on the Account form: Now, this is control is an editable grid: Which means we can use the OnRecordSelect event: If we add the code below to the OnRecordSelect, we will get … Continue reading Getting the Selected Record in a Subgrid Using executionContext

Going Over Field Label Maximums in Dynamics 365 Power Apps

In this post, we will look at field label maximum sizes and how to overcome them. Let’s look at the account name of an Account record. The size of the record is 160 characters: Now what if we want to go over this? Let’s look at the label of the name: Let’s create a string greater than 160 characters, i.e. 161 characters: If we paste this into the label field, … Continue reading Going Over Field Label Maximums in Dynamics 365 Power Apps

How to Create a Node and Babel Project using Visual Studio Code

In this post, we will look at how to create a basic Babel project using Node in Visual Studio Code. Babel is a useful plugin that transpiles JavaScript to various versions. Let’s look at how to set this up. First, let’s create a new folder in Windows called babeltest and run npm init -y to create the package: We now have one file in our directory, the package.json: Note, alternatively … Continue reading How to Create a Node and Babel Project using Visual Studio Code

Power Apps Portal Unknown Failure for Password Reset

In Power Apps Portals, when a user tries to reset their password, they may run into an error message “An unknown failure has occurred. Error ID #”: To resolve this, go to the Send Password Reset To Contact process and click on View Properties: We see the From email is the owner of the contact. If the contact is a portal-created contact, the owner is the SYSTEM account: To fix this, … Continue reading Power Apps Portal Unknown Failure for Password Reset

Use the Flip Switch Control to Show and Hide Sections on a Form

In Dynamics 365 / PowerApps, we have a flip switch control, which is a nice way to represent a two-option field. Let’s take a look at how we can use this control with business rules to show and hide sections on a form without code. Let’s say we want to hide the Company Profile section of a form based on the value of a new field: Let’s create a new … Continue reading Use the Flip Switch Control to Show and Hide Sections on a Form

How Contact Signup Works in Power Apps Portals

In this post, we will look at contact signup in Power Apps Portals. First, let’s look at the portal-contact design. When a person signs up for Power Apps portals, they will appear as a contact in Dynamics 365. I.e. if you browse to contacts, you will see the contact record. The type of Authentication enabled for a portal can be accessed by going to Settings in the Power Apps Maker … Continue reading How Contact Signup Works in Power Apps Portals

Using Postman to Debug a Local ASP.NET Core Web Api

In this post, we will look at how to debug a local API.NET Core Web Api. First, we have a Web Api project in Visual Studio: The URL for this Web Api, when run locally, is https://localhost:44336/api/customers: Let’s add a breakpoint in Visual Studio: Now, let’s debug locally. In Postman, create a new request. We will set the URL to the local one above – https://localhost:44336/api/customers. This will be a GET request. … Continue reading Using Postman to Debug a Local ASP.NET Core Web Api

Updating Lookup Fields in JavaScript using Xrm.WebApi

In this post, we will look at how to update Lookup Fields in a Dynamics 365 Power Apps record using the Xrm.WebApi. Let’s say we have an Opportunity record. This record has 3 lookup fields: Contact Account Currency For simplicity, let’s hardcode the Ids of the new records we will be associating to our Opportunity: Our new Contact called Maria Campbell is c0993617-c85d-ea11-a811-000d3a579ca1 Our new Account called Blue Yonder Airlines … Continue reading Updating Lookup Fields in JavaScript using Xrm.WebApi

How to Run and Use the Power Apps Solution Checker

The Power Apps Solution checker is a useful tool from Microsoft that checks Power Apps solutions for issues and recommend best practices. These issues include problems with JavaScript, HTML, Plugins, and custom workflow activities. This tool can be especially useful when you are migrating your customizations from the legacy web client to the new Unified Interface client. From the Microsoft description: “PowerApps Checker promotes higher-quality model-driven apps by helping app … Continue reading How to Run and Use the Power Apps Solution Checker

Installing and Using Power Apps in PowerShell for Admins and Creators

PowerShell can be used to manage Power Apps. Let’s look at how to use this, and some of the functions available for both Administrators and Creators of Power Apps. To install, open a PowerShell Command Prompt as Administrator and run the command: Install-Module -Name Microsoft.PowerApps.Administration.PowerShell Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber Press Y or A to install: Note you can visit the Power Shell Gallery at https://www.powershellgallery.com/packages/Microsoft.PowerApps.Administration.PowerShell/: To see the many functions available: … Continue reading Installing and Using Power Apps in PowerShell for Admins and Creators