Author Archives: Bernado

Unknown's avatar

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.

Interesting behaviours with enum in .NET

When defining an enum type, we can assign an int value to each of the enum members. Below is an example. Now there are two behaviours that you may not be aware of. Firstly, given the above definition, you can … Continue reading

Posted in .NET | 1 Comment

Form JavaScript returning incorrect saveMode in CRM – Microsoft bug?

I think I may have found a bug in the internal CRM JavaScript, and it is to do with retrieving the saveMode in form script. As you may be aware, you can determine the save mode by executing executionObject.getEventArgs().getSaveMode() in form … Continue reading

Posted in CRM | 1 Comment

Which ID property to use in early-binding programming in CRM?

Have you noticed that the generated early-binding classes always have 2 ID properties? For example, the Account class would have Id and AccountId. The Contact class would have Id and ContactId. Which property should you use in early-binding programming? Well, if … Continue reading

Posted in CRM | Leave a comment

Plugin/workflow attribute filtering and updating records via web service (the right way)

Recently we ran into an issue where a workflow configured to run upon changing a particular field was being triggered even though that field was not being updated. In the end it turned out that this was because of the … Continue reading

Posted in CRM | 1 Comment

How to update plugin/workflow assembly in CRM database programmatically

In certain scenarios you might need to update a plugin/workflow assembly deployed to the CRM database programmatically. A good example is for CI build/deployment purposes. From a CI build/deployment perspective, an issue with deploying the assembly to the database, and promoting the assembly … Continue reading

Posted in CRM | 1 Comment

Introducing a new productivity Visual Studio extension for CRM developers

New in 3.9: Added support for Portal content snippets New in 3.8: Added support for client ID/secret and MFA New in 3.7: Automatic Portal cache refresh (xRM CE Portal only) New in 3.6: Auto-deployment of linked items New in 3.5.3: … Continue reading

Posted in CRM | 7 Comments

‘Plug-in assembly does not contain the required types or assembly content cannot be updated.’ when importing CRM solution

I was importing a simple solution with a few plugins into my Test environment and got this error message: Plug-in assembly does not contain the required types or assembly content cannot be updated. Apparently this can occur for a number of … Continue reading

Posted in CRM | Leave a comment

Showing the ‘records associated with this view’ button for sub-grids in CRM

Sub-grids on CRM forms typically have a button that takes you to a view showing all records associated with the main record, as shown below. Have you ever wondered how to remove this button or add it back? The visibility … Continue reading

Posted in CRM | 4 Comments

Connector for Dynamics: ‘Could not find key [ID field] in Dictionary for entity’ when mapping to custom entity in CRM

Using the Connector for Dynamics I was mapping an entity in GP 2010 to a custom entity in CRM 2013. In this case the schema name of my custom CRM entity is ng_courseinvoice (the display name is Course Invoice). When the map is … Continue reading

Posted in CRM, Dynamics Connector, Dynamics GP | Leave a comment

‘Could not load file or assembly ‘Microsoft.Interop.Security.AzRoles, Version=1.2.0.0…’ when installing GP 2010 Web Services

I was installing GP 2010 Web Services on a Windows Server 2012 R2 and received the error below: System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Interop.Security.AzRoles, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. File … Continue reading

Posted in Dynamics GP | Leave a comment