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

Using the New Modal Dialog to Open Forms in Dynamics 365 using Xrm.Navigation.navigateTo

Dynamics 365 Release Wave 1 for 2020 has some cool features. One of those is being able to open forms as a Modal Dialog. This is pretty awesome, as I had a client looking for this feature recently. Let’s look at how to use this. If you prefer video, check out how to do this on Power Platform TV, my YouTube show: We will access these modal forms through JavaScript. … Continue reading Using the New Modal Dialog to Open Forms in Dynamics 365 using Xrm.Navigation.navigateTo

Turning Off Power Apps Portal Open Enrollment

In this post, we will look at how to turn off the Power Apps Portal open enrollment. Without turning off the setting, Portals will allow anyone to register by clicking on the Sign In, then Register link: To turn this off, in the Portal Management app, go to Site Settings, then Authentication/Registration/OpenRegistrationEnabled: Change the value to false and save the record: Now, when you go to the Portal, you won’t … Continue reading Turning Off Power Apps Portal Open Enrollment

Using JavaScript to Go to Next Stage in Business Process Flows (Continued)

In a previous post, we look at how to go to the next stage in a Business Process Flow. Let’s continue this and look at more methods in the Client API to help us achieve this, including formContext.data.process.moveNext and formContext.data.process.movePrevious, which are useful if you need the BPF UI updated in real time. If you prefer to learn by video, check out this video on my YouTube channel: Let’s look at … Continue reading Using JavaScript to Go to Next Stage in Business Process Flows (Continued)

How to Fix the Binary Operator with Incompatible Types WebApi Error in Dynamics 365

In this post, we will look at how to fix the error “a binary operator with incompatible types was detected. Found operand types ‘Microsoft.Dynamics.CRM.account’ and ‘Edm.Guid’ for operator kind ‘Equal’”. This error occurs when trying to access the WebApi. There are at least a couple of scenarios where this error can happen. Let’s look at these. The first scenario is when you are trying to select a record by filtering the Id. … Continue reading How to Fix the Binary Operator with Incompatible Types WebApi Error in Dynamics 365

Creating an HTTP Listener with Power Automate

In this post, we will use Power Automate to create an HTTP Listener. This can be useful when subscribing to webhooks. Go to https://powerautomate.microsoft.com and select New Flow, then Automated Cloud Flow: Skip here: Select Request: And: We see: At this point, we can do anything with the flow, such as sending an email, integrating with 3rd party systems, etc. Let’s do something very simple. We will send an email. … Continue reading Creating an HTTP Listener with Power Automate

Bulk Edit of Records in Dynamics 365

In this post, we will look at how the bulk editing of records works in Dynamics 365. Let’s create a new entity. Go to the Power Apps maker at https://make.powerapps.com and let’s create a new solution: We will call it Bulk Edit Test: Now let’s create a new Table / Entity: The table will hold a list of students: Now let’s go to /apps and create a new app: Click Done: … Continue reading Bulk Edit of Records in Dynamics 365

Power Apps Portal Checker

The Power Apps Portal Checker is a useful tool to check issues in your Power Apps Portal. To use it, go to the Power Apps Portal Admin Center and select Run Portal Checker: Once complete, you will see feedback like below, which includes which pages have anonymous access, startup, caching issues etc. It’s a useful tool to run during and after Portal deployments.