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

Checking out the Personalized Visualizations Pane in Power BI

A new preview feature of Power BI Desktop is the ability to pin the choices of visualizations available in the Visualization Pane, so we can access them easily across multiple reports. This will be a welcome change to report designers who often use visualizations that are not out of the box. To enable the preview, go to Power BI Desktop and select Options: Under Preview features, select Personalized visualizations pane and … Continue reading Checking out the Personalized Visualizations Pane in Power BI

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

Retrieving Entity Metadata in Dynamics 365 with JavaScript

In this post, we will look at how to retrieve Entity Metadata in Dynamics 365 with JavaScript. Let’s say you want to get the metadata for an entity. [sourcecode language=”JavaScript”] var req = new XMLHttpRequest(); req.open("GET", Xrm.Utility.getGlobalContext().getClientUrl() + "/api/data/v9.0/EntityDefinitions(LogicalName=’account’)", true); req.setRequestHeader("OData-MaxVersion", "4.0"); req.setRequestHeader("OData-Version", "4.0"); req.setRequestHeader("Accept", "application/json"); req.setRequestHeader("Content-Type", "application/json; charset=utf-8"); req.setRequestHeader("Prefer", "odata.include-annotations=\"*\""); req.onreadystatechange = function() { if (this.readyState === 4) { req.onreadystatechange = null; if (this.status === 200) { var results … Continue reading Retrieving Entity Metadata in Dynamics 365 with JavaScript

Publishing a Microsoft Power Virtual Agents Bot to Microsoft Teams

In a previous post, we looked at how to create a PowerApps Virtual Agent that gets the weather from an MSN weather service, so users can ask the bot what the weather is. In this post, we will deploy that service out to Microsoft Teams, so users of Teams can easily ask the bot questions. First, let’s go to the bot and go to Manage->Channels, then select Microsoft Teams: This … Continue reading Publishing a Microsoft Power Virtual Agents Bot to Microsoft Teams

Deploying Microsoft Power Automate Flows from One Environment to Another

In this post, we will look at how to deploy Microsoft Automate Flows from one environment to another. Let’s say we have a Flow we have created in our Development environment and we want to deploy it to our Production environment. In our Development environment, we have a flow called “Power Virtual Agent Flow Template”, which we happened to create from a Power Virtual Agent bot. This flow is in … Continue reading Deploying Microsoft Power Automate Flows from One Environment to Another

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