Running a Simple Bar Chart in Python

In this post, we will look at how to run a simple bar chart in Python. We will use matplotlib. Here’s the code. We will display a chart with x-axis showing “team” data vs y-axis showing “score”: [sourcecode language=”Python”] import matplotlib.pyplot as plt team = (‘A’, ‘B’, ‘C’, ‘D’, ‘E’, ‘F’) score = [9,2,5,4,8,6] plt.bar(team, score) plt.show() [/sourcecode] Let’s run this in Visual Studio Code. Save the code with a … Continue reading Running a Simple Bar Chart in Python

Running Python and Visual Studio Code in Windows

In this post, we will look at how to run Python with Visual Studio Code in Windows. To install Python, go to the Python download page at https://www.python.org/ and click on Downloads: Click Download Python: This will download the file: Check Add Python to PATH and click to Install. Note this also installs IDLE (the IDE), pip (the package installer) and documentation: Note customizing gives us: Click Close once complete: Note … Continue reading Running Python and Visual Studio Code in Windows

Opening Lookups in New Web Page in Dynamics 365 Unified Interface

In Dynamics 365, when using the Unified Interface, we have the ability to open lookup fields in different web pages, through the use of user clicking. The behavior works as follows, which can be useful if you want to stay on the page you are on. In our example let’s look at an Opportunity record with a Contact lookup field. Control + Click Clicking the Control key and Clicking the … Continue reading Opening Lookups in New Web Page in Dynamics 365 Unified Interface

Running an R Visualization in Power BI Desktop

In the previous posts, we installed R for Windows and RStudio as an IDE for R. Both are configured to work with Power BI. In this post, we will run an R Visualization in Power BI. In Power BI Desktop, you will see the R visualization type under Visualizations: Selecting it, we see the message to Enable script visuals. Note the warning and click Enable if you want to proceed: … Continue reading Running an R Visualization in Power BI Desktop

Installing and Removing Packages in R

To install an R package, open your R UI such as RStudio. You will see Packages: Let’s install the DT library, which does not exist on this environment. We can do this through the GUI or through the command. We will do both, first the GUI. Click on Install: Enter DT into the Packages field and click Install: We can see this runs in the console the command: install.packages(“DT”) It … Continue reading Installing and Removing Packages in R

Install R Packages for Power BI R Visualizations

In Power BI, when using the R custom visualization, we may need to use an R package that is not installed. Note the list of supported packages. For example, we’re trying to use the DT library: But we get Error in Library(DT) there is no package called DT: We can use the command install.packages to try to resolve this: However, this produces this error: R script error. Installing package into … Continue reading Install R Packages for Power BI R Visualizations

Stopping User from Typing Past Field Size Limit in Dynamics 365 Unified Interface

In Dynamics 365, when using the Web Client, when a field limit size is reached, the user will be prevented from typing in the field. This behavior is different in the Unified Interface. In this post, we will look at how to stop the user from continuing to enter in Unified Interface fields when the field size is reached. Let’s start by creating a new field, called Field with Limit … Continue reading Stopping User from Typing Past Field Size Limit in Dynamics 365 Unified Interface

Dynamics 365 Client API Changes Continued – GlobalContext and FormContext

Following on from a previous post where we introduce changes to the Client API and form context, let’s look more at using this in order to move from the deprecated Xrm.Page. Using a similar example, we will pass the context from the OnChange event of our Fax field on the page our JavaScript function (we will reuse the OnLoad function): [sourcecode language=”JavaScript”] function DoLoad(executionContext) { var formContext = executionContext.getFormContext(); } … Continue reading Dynamics 365 Client API Changes Continued – GlobalContext and FormContext

Default Zoom Level for Chrome Process in Unified Service Desk

In USD, we have the option to set the default zoom level for all users in an organization. To do this, in the USD Administrator App, go to Options and New: Create a new option called DefaultZoomLevel like below. In : Let’s say we set this to 3, like above. This will set the zoom to 3 times. So my environment is pretty zoomed in here: And that is for all … Continue reading Default Zoom Level for Chrome Process in Unified Service Desk

Running an R Visualization from the Marketplace in Power BI

In the previous posts, we installed R for Windows and RStudio as an IDE for R. Both are configured to work with Power BI. In this post, we will run an R Visualization from the Power BI marketplace. In Power BI Desktop, under Visualizations select Import from Marketplace: Note you can see these visualizations from AppSource at https://appsource.microsoft.com/en-US/marketplace/apps?page=1&product=power-bi-visuals: Let’s install the Outlier Detection visualization from Microsoft. In Power BI Desktop, … Continue reading Running an R Visualization from the Marketplace in Power BI