Windows Forms Hosted Control in USD

In this topic, we will go through how to integrate Unified Service Desk with a Windows Forms UII Hosted Application. For example, you may want to build from scratch a windows forms application that your agents use, that is integrated with USD. Using the USD Developer Guide, we are able to create applications that run as hosted controls and contain code that talks with USD. This is different from the scenario … Continue reading Windows Forms Hosted Control in USD

Using Xrm.Page in Dynamics 365 HTML Web Resource

In Dynamics 365, you can add HTML Web Resources with JavaScript. You may want to use Xrm.Page features, but if you try to do this, you get the error that “Xrm” is undefined. To get around this, you need to use GetGlobalContext function. Add the script below to your web resource: <script src=”ClientGlobalContext.js.aspx” type=”text/javascript”></script> Add the code: <!DOCTYPE html> <html> <head>     <title></title>     <script src=”ClientGlobalContext.js.aspx” type=”text/javascript”></script>     <script type=”text/javascript”>         function ButtonClicked() {             var userName = Xrm.Page.context.getUserName();             alert(userName);         }      </script> </head> <body> … Continue reading Using Xrm.Page in Dynamics 365 HTML Web Resource

UII and XRM Tooling NuGet Packages

To install the UII NuGet Packages, open a Visual Studio project and open the Package Manager Console. Enter the command: Install-Package Microsoft.CrmSdk.XrmTooling.CoreAssembly This will install the following assemblies: Then, install the UII Common package: Install-Package Microsoft.CrmSdk.UII.CommonAssemblies More information: https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/ https://www.nuget.org/packages/Microsoft.CrmSdk.UII.CommonAssemblies/    

USD – Create Entity

In USD, there is an action call that creates an entity in CRM. Let’s go through an example of how to use it. In this example we will show how to clone an account record. Create a new Action Call. Set the hosted control to CRM Global Manager and the Action to CreateEntity. Note we are setting in the data field what entity to create (account) and passing name value pairs for … Continue reading USD – Create Entity

Dynamics 365 Activities

Activities in Dynamics 365 are ways to communicate with your customers. To access activities, go to Sales->Activities: Selecting this link takes you to the Activities view: There are different types of activities, including: tasks email appointments phone call letter fax service activity campaign response To enter a new task, select New Task and set the regarding (select the entity and record): To enter a new email, select New Email and … Continue reading Dynamics 365 Activities

USD Session New

Session New is an event that is part of the CRM Global Manager hosted control. A typical sequence of events is: User selects a link in USD USD determines if there is a Window Navigation Rule associated with the from entity clicked and the to entity. Or, if there is a navigation rule from blank entity to blank entity If there is, and the result is Create Session, then Perform the actions associated … Continue reading USD Session New

Dynamics CRM Email Tracking Token

Dynamics CRM has the ability to track emails. In doing so, it adds a tracking token to the subject line of the email message. This functionality can be enabled or disabled. To turn the feature on and off, go to Settings->Administration and select System Settings: Next, select the Email tab. Scroll down to the option “Use tracking token”. Here, you can enable, disable and configure the email token. Note – enabling … Continue reading Dynamics CRM Email Tracking Token

Dynamics 365 Add HTML Web Resource and JavaScript Button

In Dynamics 365, we can use Web Resources to add buttons to forms. To do this, go through the following steps. We will do this using Developer Extensions. First, create a new project: Right click and add a new HTML Page: We will call the page JSButton.html: This creates: Let’s add some Hello World text and deploy this to see how it looks: From the Web Resource Deployer, Connect to … Continue reading Dynamics 365 Add HTML Web Resource and JavaScript Button

Installing and Using ILSpy

ILSpy is an assembly browser and decompiler. Here we will go through installing and using ILSpy. First, download the binaries from the ILSpy website: This will download a ZIP file. Extract the file: Run the ISpy.exe: Click to open a file: Here I have selected an exe compiled from code I previously wrote. You can see we can now see the decompiled code within ILSpy:  

Advanced Find URL in Dynamics 365

The Advanced Find in Dynamics 365 can be accessed directly through a URL. That URL is: https://yourcrm.crm.dynamics.com/main.aspx?pagetype=advancedfind The advanced find page will then load: