Category Archives for "Customization"

1 CRM 2011: Tracing Errors during SDK Development

I am working hard to put one of the last major features into my CRM Migration Manager and ran across some interesting issues today and the background information was equally interesting so I thought I’d share:   Error: System.Runtime.InteropServices.COMException Using the exception-handling code ask documented in the CRM 2011 SDK (5.0.2), I received the following […]

Continue reading

Creating a query to find all users with a specified security role

I ran into an interesting requirement this morning that let’s me show off one of my favorite CRM add-on utilities: Stunnware Tools.  Let’s cover both. The Requirement I needed to create a list of users that were members of a specific security role.  Rather than writing an application or designing a SQL query, I opened […]

Continue reading

2 Finding the value of the state and status codes

If you’ve ever wondered how to find the values for the statecode and statuscode, you can use the following SQL script to find those values: select AttributeName, AttributeValue, Value from dbo.StringMap where (dbo.StringMap.AttributeName = ‘statuscode’ or dbo.StringMap.AttributeName = ‘statecode’) and dbo.StringMap.ObjectTypeCode = 1 Will display the following values for the Account Entity ( ObjectTypeCode = […]

Continue reading

CRM Customization File Best Practices

Today I thought I’d share what I think are some best practices when working with CRM’’s customization files. Procedure When exporting customizations for either edit (ISV.Config or Site Map ) or transport, I always save them to disk so I have a reference copy of the customizations.   Location Pick a specific folder on your […]

Continue reading

CRM 4.0’s Built-in SQL Functions (Part 5 of 5)

The final installment in this series contains miscellaneous SQL functions. You may wish to review the following articles before proceeding: CRM 4.0’s Built-in SQL Functions (Part 1 of 5) CRM 4.0’s Built-in SQL Functions (Part 2 of 5) CRM 4.0’s Built-in SQL Functions (Part 3 of 5) CRM 4.0’s Built-in SQL Functions (Part 4 of […]

Continue reading

CRM 4.0’s Built-in SQL Functions (Part 4 of 5)

In this section, we’ll cover year-related functions. You may wish to review the following articles before proceeding: CRM 4.0’s Built-in SQL Functions (Part 1 of 5) CRM 4.0’s Built-in SQL Functions (Part 2 of 5) CRM 4.0’s Built-in SQL Functions (Part 3 of 5)   dbo.fn_BeginOfLastYear Returns the beginning date and time for last year. […]

Continue reading
1 3 4 5