Category Archives for "Development"

How much space are my Attachments using, part deux

In the first article we discussed using SQL to determine the size of the Attachments in the database. My friend Aron Fischman shared with me similar queries using FetchXml:   <!–Email Attachment File Size Analysis–> <fetch distinct=’false’ mapping=’logical’ aggregate=’true’> <entity name=’activitymimeattachment’> <attribute name=’activitymimeattachmentid’ alias=’EmailAttachmentCount’ aggregate=’count’/> <attribute name=’filesize’ alias=’FileSizeSum’ aggregate=’sum’/> <attribute name=’filesize’ alias=’FileSizeAvg’ aggregate=’avg’/> <attribute name=’filesize’ […]

Continue reading

2 Error: Proxy type with the name account has been defined by another assembly

I am a big fan of the Simplified Connection technology added by the Xrm.Client assembly and use it almost exclusively. Recently, I ran into the same issue at two separate customers. Both had just converted from CRM 4.0 and both had plugins and custom ASP.NET web pages in use. Occasionally, the following exception would be […]

Continue reading

5 Date.js and Dynamics CRM 2011

In a word: NO. I recently added the JavaScript date library Date.js to an installation to get some date calculation functionality. It worked great but totally broke the CRM date controls. After much troubleshooting and some helpful advice from my friend Tanguy, I realized Date.js was incompatible with CRM and I had to remove it […]

Continue reading

.NET Upgrade: Interesting Workflow Activity Upgrade Issue

I ran into an interesting issue today upgrading a custom workflow activity.  I received this error: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">   <ErrorCode>-2147200995</ErrorCode>   <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />   <Message>Duplicate workflow activity group name: ”, activity name: ‘Assign email regarding to case’.</Message>   <Timestamp>2013-06-14T19:45:24.1533902Z</Timestamp>   <InnerFault>     <ErrorCode>-2147200995</ErrorCode>     <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />     <Message>Duplicate workflow activity group name: […]

Continue reading

JavaScript Upgrade Strategies webinar follow-up

The recording today’s webinar is now up: http://www.xrmvirtual.com/events/javascript_upgrade_crm2011_Mitch_Milam Here are the main talking points from today’s meeting: Strategies: Here are the strategies I follow when performing an upgrade from CRM 4.0 to CRM 2011: #1: Create a test environment #2: Upgrade your object model #3: Use Visual Studio (with add-ins) #4: Reorganize your functions #5: […]

Continue reading

1 Dynamics CRM development and the new auto-save feature

The Dynamics CRM 2011 December 2012 service update (otherwise code-named Polaris) gave us the new Flow-UI forms. These forms include an auto-save feature that can, and probably will, effect the way we CRM developers approach our work. If you have not investigated the side-effects and other design-considerations for this new feature, please take a look […]

Continue reading

1 CRM SDK Nugget: Entity.ToEntityReference Method

Here is another cool Entity extension method that I keep forgetting to use: Entity.ToEntityReference. Normally, when creating a reference to an Entity, we would use something like this: RetrieveRequest request2 = new RetrieveRequest { Target = new EntityReference(Account.EntityLogicalName, account2.Id), ColumnSet = new ColumnSet(), RelatedEntitiesQuery = new RelationshipQueryCollection() }; However, if we have already gone to […]

Continue reading