Daily Archives: April 23, 2013

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