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

Calling Dynamics 365 WebApi from Power Apps Portal

In this post, we will look at how to call the Dynamics 365 WebApi from Power Apps Portals. First, we can test the WebApi by browsing to it in the browser. The address is <portalurl>/_api/<entityname>. Let’s try the accounts entity, which would be the URL /_api/accounts and see if we can retrieve accounts: We get the message: {“error”:{“code”:”9004010C”,”message”:”Resource not found for the segment account.”}} Now, in the Portal Management app, … Continue reading Calling Dynamics 365 WebApi from Power Apps Portal

How to Assign a Power Apps Portal Administrator

To make yourself a Power Apps Portal Administrator, you will need to open the Portal Management app and select the user you want to make Admin: Then go to Related->Web Roles: Click Add Existing Web Role: Find Administrators, then click Add: Now, when the user logs into the portal, and browses to _services/about, they will see the portal version number, and have the ability to clear cache, rebuild the search index, … Continue reading How to Assign a Power Apps Portal Administrator