27 Şubat 2010 Cumartesi

Teklif ürünleri ve Sipariş ürünleri arasında mapping işlemi

In SQL Server Management Studio.  Run the following query:
Select * from entitymapbase where targetentityname = 'salesorderdetail'
This query should return three items, we care about the row with a SourceEntityName column value of "quotedetail".

Now copy the GUID value of the EntityMapId column for that row.
Then I use this URL, and at the end of it I paste the GUID that I just
copied:
http://yourservernamehere/Tools/SystemCustomization/Relationships/Mappings/mappingList.aspx?mappingId=
This gives me the secret hidden mappings that I was after, between "Quote Product" and "Order Product".  It is just another normal CRM GUI relationship mappings form.

20 Şubat 2010 Cumartesi

Set the State/Status of A Custom Entity in CRM 4.0

SetStateDynamicEntityRequest stateReq = new SetStateDynamicEntityRequest();

stateReq.Entity = new Moniker();

stateReq.Entity.Id = new Guid("The GUID of your Entity instance here");
stateReq.Entity.Name = "your entity Name here";

//Set to Inactive
stateReq.State = "inactive";
stateReq.Status = -1;

//Set to Active
//stateReq.State = "active";
//stateReq.Status = 1;

SetStateDynamicEntityResponse stateSet = SetStateDynamicEntityResponse)crmService.Execute(stateReq);