You are here

Application Development

Avoiding ‘xRM’ is Undefined in a Web Resource in CRM

I have been doing some work lately in Microsoft Dynamics CRM involving creating web resources. Specifically, I am opening an HTML web resource from the ribbon. On that web page, I needed to be able to call the CRM web service to create some records. “Easy enough,” I thought! Just use Xrm.Page.context.getClientUrl() and go about my business dealing with creating records.

Microsoft Dynamics CRM 2015 Update Overview

As Microsoft has released the 2015 versions of Microsoft Dynamics online and on-premise, they are also working on their next major update. It is working to add a variety of innovative and advanced features to its “all-in-one” Customer Relationship Management Solution. It is aiming to strengthen the collaboration amongst sales and marketing teams within a company, setting Dynamics CRM above and beyond its competitors.

Accessing MVC View Model Properties in a Loop

With MVC, it’s easy to access the model that’s bound to a view and display the various property names and values. As a matter of fact, the scaffolding feature does just that. However, I wanted to simply display the property name (or display name) and its value, one property per line for emailing purposes, so I was looking for a way to just loop through the properties. That way, if the model changed in the future, no changes would be needed in my view.

Anonymous Identification in MVC

In today’s blog, we are going to talk about a problem I stumbled across recently while working on one of my MVC 5 based web projects. How can we identify an anonymous user that interacts with our webpage over a period of time that exceeds the scope of a regular user session?

Our Example Scenario “I Remember You”

Set CRM OptionSet by Label (C#)

Using the CRM SDK, we can easily update fields in CRM with a variety of different types:


// string

entity["abc_name"] = "John Smith";

// int

entity["abc_code"] = 1234;

CRM 2013 Mobile: Lookup Filtering

Quite often, it can be useful to automatically filter a form’s lookups to just related records. For instance, the account’s primary contact lookup can be filtered to just those where the contact’s parent customer is the current account. This is typically done by selecting the correct relationship in the properties for the control:

Selenium Part 2

In this blog post we are going to discuss how to restructure our Selenium test case from the previous tutorial to separate Selenium related code from the actual test logic. Let’s look at a common approach that established itself as a widely used pattern in the Selenium testing world.

The Page Object Pattern

Web API Debugging

I recently deployed a Web API project that handled replicating some changes in Microsoft CRM to another system. Everything was running fine on my local machine, but, of course, when it was deployed, it didn’t work as expected. The error message that was coming back when I was testing via Postman was:

{"Message": "An error has occurred."}