Today I've been doing some coding again and I've found an interesting situation. For my code I do need to find which marketing lists belong to a specific Campaign Activity. Apparently more people on the internet faced the same issue, but I haven't found anybody who supplied the answer on how to do that. I've managed to find an approach which works for both the fetchXml as well as a
Showing posts with label customization. Show all posts
Showing posts with label customization. Show all posts
Sunday, 21 March 2010
Tuesday, 29 September 2009
Document your CRM installation
Posted on 01:38 by Unknown
Everybody knows the importance of documentation of a project. Thanks to Merijn van Mourik and some other guys there is a tool which can help you documenting your solution. This is a free tool which you can download from Codeplex: CRM 4 documentation.If you want to use this tool on a standalone machine or a machine without internet connection, then you should download and install the following
Monday, 29 June 2009
Remove attributes from form which cannot be removed
Posted on 05:32 by Unknown
There are some attributes on CRM default forms which you cannot remove. This post will show you how you can do this anyway. While doing so, please keep in mind that Microsoft must have good reasons to fix attributes on the form. Removing this might have implications, as always have a good backup ready.The steps you need to follow to remove are:- Export customizations for the specific entity-
Thursday, 23 April 2009
Walk through all elements on a form
Posted on 01:08 by Unknown
In some cases it is required to set all attributes on a form to disabled or do some other logic like checking which attribute has been changed. To do this you do need to walk through each attribute of the CRM form. My fellow MVP Mitch Milam has posted the technique to do this more than a year ago:http://blogs.infinite-x.net/2007/11/21/disabling-all-fields-on-a-crm-form/The most important piece of
Thursday, 16 April 2009
Hiding elements: the next evolution
Posted on 14:35 by Unknown
One of my colleagues, Richard McCormick, has written a blog post for the Avanade internal employees. He has asked me to make this post publically available since it might be interesting for more people. Read on and get great code samples on how to hide attributes, elements and sections.Hiding Links & Controls in CRM 4 Before I go on, I should point out that this solution is technically
Friday, 10 April 2009
Displaying inactive records in associated view
Posted on 05:46 by Unknown
In some situations you do want to show the inactive records in an associated view as well. My fellow MVP George Doubinski wrote an article about how to solve this by using a plugin:http://crm.georged.id.au/post/2008/03/07/Displaying-inactive-records-in-associated-view.aspx.In this post I will show that there are more routes to Rome. I've looked into the option of editing the query which is being
Friday, 20 March 2009
Read-only URL Addressable Form
Posted on 06:10 by Unknown
The SDK does describe URL Addressable Forms, but one thing which I do miss on this page, is details around how to link to a form in readonly format. This is done by using the following URL:http://server/orgname/_forms/readonly/readonly.aspx?objTypeCode=objectTypeCode.Of course you need to change the server to servername, orgname to organization name and the objectTypeCode to the entity object
Monday, 16 February 2009
Using Advanced Find for FetchXML builder v4.0
Posted on 07:50 by Unknown
Some time ago I have written an article about how to use the Advanced Find as FetchXML builder. Today I tried using the javascript:prompt() method on a CRM 4.0 deployment and found out that the code doesn't work anymore. This alert script does still work though.javascript:alert(resultRender.FetchXml.value);A slightly different code which might be easier to remember is:javascript:alert(
Wednesday, 24 September 2008
Custom entities and attributes in a plug-in
Posted on 01:37 by Unknown
You cannot create a webservice in Visual Studio when you're writing a plugin. Instead you need to use the method context.CreateCrmService(true);. There is only one single issue when using this approach. You cannot leverage the power of IntelliSense in Visual Studio. Visual Studio will not recognize your custom entities and attributes. How to work with this? The only correct answer is "Dynamic
Thursday, 18 September 2008
Unauthorized error after deploying your custom application
Posted on 04:49 by Unknown
I've been working on deploying an application today. I received the error "Unauthorized" all the time and did not know why. The website was deployed as a new virtual directory within the ISV folder, authentication was set to integrated windows authentication and the password which was supplied was correct. Still I was able to get this error message:Server Error in '/ISV/CustomApplication'
Wednesday, 3 September 2008
Convert lead to contact, account and/or opportunity programmatically
Posted on 07:18 by Unknown
Update: The codeproject missed a line of code. After you have executed the InitializeFromRequest, then you'll get a InitializeFromResponse. This response has got a entity in it. This entity you will need to create. The entity does not yet get created by executing the InitializeFromRequest! The line to add is:Guid entityId = service.Create(rps.Entity);Today I needed some code which does convert a
Plug-in not working
Posted on 04:21 by Unknown
One of the most read pages on my blog is the list of reasons why a callout won't work. Since the release of CRM 4.0 we do not have callouts anymore, but we're using plug-ins for extending CRM. This article will contain all the reasons that I find on why a plug-in is not working.Error:"Unable to load the plug-in assembly"There are multiple reasons why this error can occur. These reasons include:-
Wednesday, 19 March 2008
Resizing windows
Posted on 06:40 by Unknown
If you have a lot of data on an entity form, then you sometimes do want to force the page to open in full screen mode. There's a small javascript which will allow you to do this. Just add these two lines of code to the form onload of your entity form:window.moveTo(0,0);window.resizeTo(screen.availWidth, screen.availHeight);Also, when you open a custom page you can also set the window size by
Monday, 10 March 2008
Stopping and continuing a save event
Posted on 05:02 by Unknown
For some customizations you do need to stop the form onsave event, perform some business logic and continue the save event. An example would be that in specific conditions are met when a record is saved, then a popup will need to be shown. After filling in data in the popup and pressing a continue button on the popup, then the save operation would need to continue. The SDK helps in this situation
Thursday, 14 February 2008
Javascript and IFrames
Posted on 04:48 by Unknown
I'm struggling with IFrames and JavaScript quite often. When you're working with this as well, the first thing to keep in mind is:Deselecte the option "restrict cross site scripting" (in dutch "Het uitvoeren van scripts tussen frames beperken")That usually saves a lot of troubles.Furthermore, the next step is to create JavaScripts. One which I use quite often, is one which allows me to access a
Monday, 11 February 2008
CrmDateTime conversion to DateTime
Posted on 07:32 by Unknown
When working with CrmDateTime, you'll notice that this type does have a .value attribute, but the type of this attribute is string. There is no attribute to get the .net class DateTime out of your CrmDateTime. If you do want to use a DateTime anyway, you'd easily need to convert it. You could use any of these:Convert.ToDateTime(crmdatetime.Value)DateTime.Parse(crmdatetime.Value)For more
Monday, 21 January 2008
AttributeInfo.TypeName(int) != AttributeMetadata.Type.Name(float)
Posted on 01:05 by Unknown
You might bump into an error message while importing an entity from a customizations file. The error show could be:Error: lead: AttributeInfo.TypeName(int) != AttributeMetadata.Type.Name(float)The cause of this error is a mismatch in attribute type. Usually a field has been removed in the other environment and has been recreated with another attribute type. The type in your destination CRM system
Tuesday, 27 November 2007
Improve performance of Microsoft Dynamics CRM
Posted on 00:53 by Unknown
The performance of your CRM implementation is one of the key factors for customer acceptance. There are multiple options available for optimizing your system. Here's a list to get started:Microsoft - Optimize Microsoft Dynamics CRM 3.0Microsoft - Optimize Microsoft Dynamics CRM 1.2Aaron Elder - Optimize the CRM Webservice CallsBrein Reid - Reduce the amount of useless calls to IIS 6.0
Thursday, 11 October 2007
Fetch the ObjectTypeCode based on EntityName
Posted on 08:01 by Unknown
Not a very rocket science, but just something again that I don't want to type over and over again. So here's a piece of code that helps you to fetch the ObjectTypeCode based on the EntityName for CRM 3.0:private int GetObjectTypeCode (string entityName){ CrmMetaDataService.MetadataService metadataService = new CrmMetaDataService.MetadataService(); metadataService.Credentials =
Monday, 20 August 2007
Creating Environment independent solutions
Posted on 18:33 by Unknown
When developing a solution for CRM, make sure that it runs on all different crm environments. Many implementations have their CRM installation on another port compared to the development environments. A way to handle this, is to look at the location of MS CRM as it is stored in the registery.// Set default valuesprivate const string CRM_REG_DIRECTORY = @"software\Microsoft\mscrm\";private const
Subscribe to:
Posts (Atom)