Why would you want to do this? Well if you’re reading this you probably have a good enough reason. My reason was because we needed to retrieve a personal view in a plugin. It needed to be a personal view because certain users should be able to edit the view, and we can’t give users access to customi
Read the full article hereIn CRM if we want to filter a query using a particular lookup value, e.g. if you had a lookup to Country and you wanted to query all Accounts where the Country is New Zealand, you could achieve this in a couple of different ways. The first and most obvious way, is to directly reference the country
Read the full article hereFor some reason I always seem to have problems configuring server side sync with Gmail addresses, and it always seems to be the same setting in Gmail which is blocking the connection, so I'm writing about this to make it easier for anyone else setting up server side sync with Gmail (including myself
Read the full article hereWhen configuring server-side-sync for CRM 2013, CRM 2015, or CRM 2016, by default if you want to specify credentials for the Email Server Profile or Mailbox, the fields will be disabled if your CRM is running on HTTP like my development server here. Since I have no intention of making this server us
Read the full article hereWhen you're installing Dynamics CRM (this is CRM 2015 in my case), the Reporting Services check may fail with the above error. For some reason, when you install SQL reporting services (this is SQL 2014 in my case), it defaults to using SSL, even though I have no intention of using HTTPS, as this is
Read the full article hereEvery time I have to do something with activities in CRM it ends up taking way longer than expected. Unlike most entities in CRM, activities have a lot of unusual relationships and field types, not to mention all the behind the scenes processes which tend to not like when you introduce your own cust
Read the full article hereBy default, CRM doesn’t allow us to create our own custom fields using rich text or HTML, similar to the email Description out of the box. However, if we’re building forms that push data to a website dynamically, we may need the ability to build some HTML in CRM. In the past there’s been a f
Read the full article hereIn a recent project I worked on, we needed to display a hyperlink in the form notification so that a user could click on it to open up an external webpage with parameters from the form. This proved to be a lot more difficult than initially anticipated, as CRM does not render any HTML tags that you
Read the full article hereA common requirement is to open a dialog process from JavaScript on click of a command bar button etc. This is quite easy to do, simply using window.open and passing in the right parameters to get the dialog working with the right record. The problem is that this doesn’t allow us to run code when th
Read the full article hereIn my previous blog post I introduced a new JavaScript library for calling processes, and I showed the function for calling a workflow. In this blog post I’m going to look at the function for calling an action. Actions can be very useful when coupled with JavaScript, as it means we can execute compl
Read the full article hereIn the past if you've needed to call a workflow from JavaScript, you need to build a massive XML SOAP request making sure to pass in the correct attributes and conditions to get the request working. This is tedious and messy, especially when there are many places you need to do this in a solution. I
Read the full article hereCRM 2013 introduced light-boxes for most popups to make the UI look cleaner with less browser alerts and popups. However, these internal functions were not included in the SDK, so as developers we couldn't access them for our custom code. Instead, we've been forced to use alertDialog and confirmDi
Read the full article hereIf you've started receiving random NullReferenceException errors when executing your plugins after upgrading to CRM 2015, this might be why. When performing SUM aggregates in plugins, for some reason now, if there are no records for that entity, instead of giving you no results like it used to, you
Read the full article hereOne of the key pieces of Service Scheduling is resources and resource groups. If your resources are not in any resource groups, they won't be able to be scheduled for any services. To make sure this doesn't happen, we can automatically add resources into a default resource group when they are create
Read the full article hereUsually when we need to debug something in Visual Studio, it's one project that we're launching, so we can simply set our project as the startup project by right clicking the project, and selecting set as startup project. In some cases however, we need to be debugging 2 or more projects at the same
Read the full article here