Creating a Template in Visual Studio

In this post, we will go through creating a project template in Visual Studio. First, open Visual Studio, and create a new project. I will base my project off the Console application, so I will select Console App: You will see: Add some packages, for example, NewtonSoft.Json and EntityFramework. Let’s add a lower version than the current version for one of the packages so we can also demonstrate what happens … Continue reading Creating a Template in Visual Studio

Dynamics 365 Mobile Apps

In Dynamics 365, there are mobile apps you can download and use for your tablet and phone. To download the apps, head to the app store for your device: Windows Apple iOS Android Install the app, and you will be presented with a login screen: Enter the URL to your organization. You will see a welcome message: And you will then be able to enter your username and password At … Continue reading Dynamics 365 Mobile Apps

Setting and Using Entity Images (Pictures) in Dynamics 365

In Dynamics 365, we can set the image of certain entities, for example below we can see there is a photo of a contact record: Only certain out of the box entities can have entity images. These are below. Note the asterisk means enabled by default: Account * Campaign Competitor * Connection Contact * Contract EmailServerProfile Goal Incident Invoice KbArticle Lead * Mailbox Organization OpportunityProduct Product * Publisher * Queue Resource … Continue reading Setting and Using Entity Images (Pictures) in Dynamics 365

Unified Service Desk – RunXrmCommand Action

In Unified Service Desk, the RunXrmCommand command allows Dynamics 365 SDK JavaScript to be injected into a 365 form. For example, let’s say a Case is opened in a session in USD. Let’s say the description is blank and we would like to populate it: To do this, we can create an action in USD: Open USD and this field will be populated:  

Introduction to using JavaScript in Dynamics 365

Dynamics 365 can be extended using JavaScript, or specifically JScript, Microsoft’s naming of the language. JavaScript can be used on different events in Dynamics 365, including: Opening of forms, by adding a JScript Web Resource to the form and then having it run OnLoad. Saving of records on forms, by adding a JScript Web Resource to the form and then having it run OnSave. On a field changing, by by adding … Continue reading Introduction to using JavaScript in Dynamics 365

Automatic Shutdown of Azure VMs

Azure Virtual Machines have a feature to configure automatic shutdown of the machine. This can be useful to save Azure resources. To enable this, go to your Azure Virtual Machine in the Azure Portal. You will see Operations->Auto Shutdown. Here you can enable or disable this feature, as well as set a time and notification for the shutdown:  

Unified Service Desk – Subactions

Subactions in Unified Service Desk are actions within actions. They are useful if you want to tie actions to a certain action. For example, let’s say every time a dashboard hosted control is loaded, you would like 2 other hosted controls loaded, which are web pages for Google.com and Bing.com. You could create an action that loads the dashboard hosted control, and have another 2 actions that load the search … Continue reading Unified Service Desk – Subactions

Excel Random Number Between

In this post we will generate random numbers for an Excel speadsheet. In Excel, go to the cell or select the range where you would like the random number to occur. Enter the formula: =RANDBETWEEN(lowernumber, uppernumber) For example, if we want to generate a number between 0 and 100, we would enter: =RANDBETWEEN(1, 100) Press Enter, or if you have selected multiple cells, press CTRL-ENTER. You will see the random … Continue reading Excel Random Number Between

USD – RefreshRequested Event

In Unified Service Desk, there is an event called Refresh Requested. In this post we will look at how to use it. Let’s say you are on the Contact page the Refresh action is run. If we have not saved changes to the record, we may want to automatically save it before the refresh is run. Go to Unified Service Desk configuration and select the Contact record: Open Events: Select … Continue reading USD – RefreshRequested Event

How to Create a Web API using ASP.NET

ASP.NET Web API allows us to build HTTP services. It can be used with ASP.NET MVC, Web Forms, WCF HttpBinding. The framework is built on ASP.NET. We will go through an example of building a Web API with MVC using Entity Framework. To create a new project, open Visual Studio and create a new ASP.NET Web Application: Now select the type of project. Here we will select Web API: The … Continue reading How to Create a Web API using ASP.NET