mscrm

"required field 'EntityId' is missing" error

Hi No matter what i attempt i keep getting the following exception being thrown by MSCRM 4.0 Invalid format of input XML for request SetStateITG_glcode: required field 'EntityId' is missing here is the captured SoapEnvelope from WireShark going to MSCRM where you can see that there is in fact a EntityId element. <s:Body><ns0:Exec...

New MS CRM contact already has an Active Directory account. How do I pull from AD?

I have some clients that I'd like to put into Microsoft CRM (3.0 Dynamics). These people are already in a small Active Directory group for access to a couple of internal applications. Is there a way to add these people to CRM and pull/push the contact data from Active Directory, so I'm not creating a second repository of information th...

Setting BusinessEntity picklist value using CRM 4.0 webservice

Hi I'm trying to create an ImportMap object in CRM 4.0. I need to set the TargetEntity property which is a Picklist value. link text seems to imply that it can be done by using importmap map = new importmap(); map.name = "test map"; map.targetentity = new Picklist(); map.targetentity.name = "Contact" but this always seems to leave...

Adding a new user to CRM 4.0 using sdk

Does anyone have sample code to add a new user to CRM 4.0 using sdk? ...

Dynamics CRM 4.0 - change Mail Merge to save in Office 2007 format (.docx)

We are developing workflow to change properties in Word documents that have been saved against letter activities created by mail merge, and would prefer to code against Office 2007 for simplicity, and to save having to recode in the future. Any ideas? ...

how can I Replace a normalize job title in a contact entity based on a lookup enity

Folks, Im using MSCRM 4 and I have a contact entity with an actual job title and a normalized job title field. I would like to populate the normalized job title field based on the actual job title. I created a seperate entity which is a table that corelates the nomalized job title with the actual job title eg Administrative CFO equals...

Retrieving values of MS CRM fields through variable

Hi all, I have a question about the Dynamics CRM 4.0 Webservice. I've been using it to get records from CRM into ASP.NET. After the request and the casting, the values of the columns (for instance for a contact) can be accessed through; BusinessEntity be = getBusinessEntity(service, crmGuid, type, colnames); contact tmp = (contact)be; ...

Retrieving display value of lookup field in Dynamics CRM C# plugin

Hi, I am trying to retrieve the display value of a lookup field in a plugin for MS Dynamics CRM 4.0. The value of the attribute is a GUID which points to another entity (owner of salesorder in this case). "Normal" attributes I retrieve with a code like this: CrmDateTime serviceOrderDateDT = (CrmDateTime)entity["submitdate"]; ...

Make AJAX request from MS CRM events

Hi, I need to make an AJAX request to some script from the onSave event of a form in MS CRM Dynamics 4.0. The code I have now is var http_request; // Prepare the xmlHttpObject and send the request. try{ http_request = new ActiveXObject("Msxm12.XMLHTTP"); }catch(e){ try{ http_request = new ActiveXObject("Microsoft.XMLHT...

How do I set a User field to a SystemUserId in JavaScript?

I'm customizing a form in Microsoft's CRM Dynamics Online, and need to set a field value to the current users's ID. I've got code that correctly pulls the SystemUserID, but I'm having difficulty getting the value into the form field. //Lots of XML/SOAP stuff to pull the user information var systemUserIdNode = entityNode.selectSingleNod...

The given key was not present in the dictionary

I am trying to make a simple plugin for MS Dynamics CRM 4.0 where send data of a salesorder in a SOAP message on the update of the order. The strange thing is that I get this error every other time i try to save /(execute the plugin). So when I update (any field) of a salesorder and then save I get the error: The given key was not pres...

Implementing a .NET application in ISV MS CRM 4.0

Hi, I'm trying to create a small application within CRM in the ISV folder. I created a new application using Visual studio 2008. The only thing it does is Response.Write("Hello world!") in the onLoad-function. I compiled it and uploaded it to a virtual folder (app) in the ISV directory in CRM. If I now go to crm.mycrm.nl:5555/ISV/app ...

How to export the CRM customization programmatically

hi I want to know how we can export the customization of all the entities programmatically . Or help me to get the metadata of the Entity forms dynamically Regards, Santosh ...

MS CRM can't add users after database restore

We have restored an old ms CRM database over a newer version. But when I try and add users which were already existed in newer version I get an error. If I delete the users from our of active directory and then try to add them to CRM it works fine. Is it possible that CRM is storing user information in the MSCRM_CONFIG. And can this b...

Problem in MS CRM 4.0 with Expand/Collapse on a SSRS 2008 report

Hello, I'm working on a SSRS report wich is deployed in a IFRAME in MS CRM 4.0. The deployement works, the report is available in the IFRAME. I have two linked problems (in my opinion): The function Expand/Collapse works in SSRS, but not in my CRM's IFRAME. The report contains parameters. Changing their values doesn't work in MS CRM,...

Create contactorders in MS CRM 4.0 through the SDK

Hi, I'm using .NET and the CRM SDK to manage salesorders in CRM. However, I want to be able to add contacts to salesorder. This should be possible using records in the intersect table contactorders. What is the procedure for adding contactorders? I tried creating a Dynamic Entity of the contactorder type, but I get the error that Create...

CRM user activity

Is there a way to track user activity in Microsft Dynamics CRM? The end result would be a list of users, showing a datetime for each access into CRM, and possibly what modules are being accessed. Also, is there a way to tie users to database connections, as is done in AX? ...

resolving incidents (closing cases) in CRM4 through webservices?

Hello everybody, I'm trying to resolve/close Dynamics CRM4 cases/incidents through webservices. A single SetStateIncidentRequest is not enough and returns a Server was unable to process request error message. I think it has something to do with active workflows that trigger on case's attribute changes. I don't know if there's anything ...

Creating a Relationship Between Order Product (salesorderdetail) and Service Activity (serviceappointment)

Hi folks, We are using Microsoft CRM 4.0 to run a consulting business. Its working pretty well but we want to simplify the way we are doing some things. What we want to do is create an Order (salesorder) with multiple Order Products (salesorderdetal). So good so far. Next I want to be able associate each Order Product (salesorderdetail...

CRM 3.0 Callouts Running in CRM 4.0 Causing Infinite Loop

I recompiled a library of CRM 3.0 callouts and deployed them to my CRM 4.0 instance. One of my PostUpdate callout calls service.Update(). This is causing the update method to fire many times. It eventually stops due to timeout errors. This does not happen when these callouts are used with CRM 3.0. The method signature is as follows for ...