Had an interesting moment this week where we were uploading files to an email without issue, but if you were to open up the attachments they’d be completely blank even though the size of the file was as expected. The actual file contents weren’t being uploaded properly.

The requirement is to attach a file to an email, without saving the attachment anywhere. So… This works.

The original code was below.

November 21, 2019

Dynamics CRM – Attach attachment to email without saving the file to a server / 0 sized byte array / empty files

Had an interesting moment this week where we were uploading files to an email without issue, but if you were to open up the attachments they’d […]
November 6, 2019

Dynamics CRM ProTip: NEVER add a service account as a user account

So, in my infinite wisdom I decided to try and resolve an issue (Working on 2 issues at a time, important point.) First issue: I noticed […]
November 5, 2019

The length of the ‘subject’ attribute of the ‘annotation’ entity exceeded the maximum allowed length of ‘500’.

Today I Learnt: Note subjects for Dynamics CRM 2016/365 (8.2) on-premises has a 500 character limit. Customization -> Note (Entity) -> Fields -> Subject -> Set […]
November 8, 2018

Dynamics CRM v9 On Premises: Needed downloads for standalone deployment

30/09/2019: If this is wrong, tweet me. Added some stuff for 9.0. 30/09/2019: Enhanced Security Configuration (https://tunecomp.net/disable-internet-explorer-enhanced-security-configuration-windows-server-2016/) Download for Server: https://download.microsoft.com/download/B/D/0/BD0FA814-9885-422A-BA0E-54CBB98C8A33/CRM9.0-Server-ENU-amd64.exe ODBC Driver: https://download.microsoft.com/download/D/5/E/D5EEF288-A277-45C8-855B-8E2CB7E25B96/x64/msodbcsql.msi Download for SQL […]
October 13, 2017

Dynamics 365 – Account Entity JSON Schema

Below is the Dynamics 365 JSON Schema for the account entity. Input parameters are where the important things are. The reason not all attributes are listed […]
October 6, 2017

Dynamics CRM – Javascript Xrm.Page.ui.getFormType()

There are hundreds of blogs which show you this: Form Type Value Undefined 0 Create 1 Update 2 Read Only 3 Disabled 4 Quick Create 5 […]
October 5, 2017

CRM 2016 JS – ReferenceError: is not defined at eval (eval at RunHandlerInternal)

  [crayon-5f07a51c5c513724037655/] Had an issue when attaching some code to the onload event on the leads entity. The TL;DR of the issue is that your code […]
April 25, 2017

Get Dynamics CRM Organisation ID to manage AD groups

Once again, I’ve taken control of a (few) Dynamics environments, each having been setup slightly differently (Account per service, single account across all services, user accounts […]
April 6, 2017

CRM 2011 – SSRS – The target principal name is incorrect

It’s not considered stealing if I wrote it myself – Putting it here for self-self-self reference as this bit me in the ass today. [crayon-5f07a51c5c9cb334614933/] My original post […]
April 7, 2016

Dynamics CRM 2013 to 2015 Upgrade – Encryption

Did a live upgrade of our CRM server and hit the following error when some plugins were firing: “Cannot open Sql Encryption Symmetric Key because Symmetric […]