How to Pass Parameters to a Button in Power Apps Dynamics 365

In this post, we will look at how to add a button to a Dynamics 365 Power Apps Form that receives parameter data. First, let’s look at passing context. Create a new JavaScript web resource and add it to the Account form. We will add the sample code below, which takes PrimaryControl as the first parameter, and if the name of the account is Contoso, sets the website field: You … Continue reading How to Pass Parameters to a Button in Power Apps Dynamics 365

Using Calendar Control in Dynamics 365 Power Apps Dashboard Components

In this post, we will look at how to use the Calendar Control in Dynamics 365 Power Apps Dashboard Components. Let’s start with a dashboard we created earlier, which shows an editable grid of accounts: Now, this view has one field, Last Date Included In Campaign, which is a date field. If we click on it, it displays a calendar for the user to select a date: But what if we … Continue reading Using Calendar Control in Dynamics 365 Power Apps Dashboard Components

Creating a System Dashboard in Dynamics 365

To create a system dashboard, go to the Power Apps Maker and create a new solution: Then select New->Dashboard and select the type of dashboard: We will select 2-column overview: Give the dashboard a name: And we will add a list to the first component: It will be a list of all Accounts: Click Save: If I don’t publish, we can see the Dashboard under Dashboards, however we see the … Continue reading Creating a System Dashboard in Dynamics 365

Using Editable Subgrids in Dynamics 365 Dashboards

In this post, we will look at using editable subgrids in a Dynamics 365 Power Apps dashboard. Let’s say you have a dashboard called System Accounts Dashboard. In this dashboard you have a list of Accounts: Go to the Power Apps maker and edit the dashboard to take a look at it: Select the list component and click Edit: This opens the Properties tab. Click on the Controls tab: We … Continue reading Using Editable Subgrids in Dynamics 365 Dashboards

How to Remove the Border around a Web Resource in Dynamics 365 / Power Apps

When a web resource is created in Dynamics 365 / Power Apps, we get a border defaulting around it. For example, below is a web resource on the Account form displaying “Hello World”. We see the border around the web resource: Even though we’re not doing anything specific in the web resource HTML: To remove the border, open the form in design mode and go to the Web Resource properties: … Continue reading How to Remove the Border around a Web Resource in Dynamics 365 / Power Apps

Showing an Error through JavaScript in Power Apps and Dynamics 365

When customizing model-driven Power Apps and Dynamics 365 with JavaScript, you may need to display an error to the user. One way to do this is to use Xrm.Navigation.openErrorDialog, which is called like below: Xrm.Navigation.openErrorDialog(errorOptions).then(successCallback,errorCallback); Let’s run it in browser Development Tools to show how it works. Open a Power App and in dev tools add the following code: Xrm.Navigation.openErrorDialog({ errorCode:”ABC7123″, details:”These are the details that will go into the … Continue reading Showing an Error through JavaScript in Power Apps and Dynamics 365

Using JavaScript to Add Spinner and Block UI in Dynamics 365 and Power Apps

In Power Apps and Dynamics 365, when writing custom JavaScript code, you may want to stop users from interacting with the user interface while your JavaScript code is processing. An example of this might be when a user clicks a custom button and some code runs, and while the code is running we want to display a “Processing” message until the code is complete. We can do this easily in … Continue reading Using JavaScript to Add Spinner and Block UI in Dynamics 365 and Power Apps

Create a Bot using Power Virtual Agents and Power Automate to Get Today’s Weather with No Code

The Microsoft Power Platform has exciting new capabilities with its Power Virtual Agents, used to build intelligent bots, and Power Automate, used to write no-code flows and integrations. What’s also exciting is the ability to call flows from bots in order to help bots answer questions and provide information to a customer/user. As I previously promised after the Ignite 2019 announcements, we will now look at how to create a … Continue reading Create a Bot using Power Virtual Agents and Power Automate to Get Today’s Weather with No Code

Checking out the Org Browser Canvas App in Power Apps

In Microsoft Power Apps, there is an Org Browser Canvas App which connects to your Office 365 data and enables the app user to search for Office 365 users in an organization. This can be convenient if you want to enable users to contact other users, especially mobile ones. Let’s take a look at it. To install it, go to https://make.powerapps.com and select Apps, then Org Browser: Give the App … Continue reading Checking out the Org Browser Canvas App in Power Apps

How to Set Button Icons in Unified Interface and Dynamics 365 Power Apps

Let’s say we want to set an icon for a button on a form in Power Apps / Dynamics 365. We will use the Ribbon Workbench to do this. Let’s add this to our Account form. First, create a solution and add the Account form: To add buttons to the Unified Interface, we will use SVG images. For the Web Client, we will use PNG images. There are online tools … Continue reading How to Set Button Icons in Unified Interface and Dynamics 365 Power Apps