The rollups keep rolling up for CRM 2011 and this means we are closers to R8 and the big enhancements coming our way.
I have updated the wiki page with the all the rollup numbers and version which you can see by clicking the link below
CRM 2011 Build and version numbers
To download rollup 7 click the release below
The KB article is KB2600643
Just to remind you, you will need to have rollup 6 installed to use this.
It seems to have a lot of fixes in this release but I can’t really make out any new major functionality.
I had to write some code today which retrieved some entities which didn’t have a value in a field, so basically I had to write a query to find all the entities which had a null value.
I finally found some sample code on the Microsoft SDK
FilterExpression null_filter = new FilterExpression(LogicalOperator.And);
null_filter.FilterOperator = LogicalOperator.And;
below is my full code. I am selecting my custom charges entity where the invoice lookup value is null
public IEnumerable<meta_charge> getCharges(IOrganizationService service)
ConditionExpression condition1 = new ConditionExpression();
condition1.AttributeName = "new_invoice";
condition1.Operator = ConditionOperator.Null;
FilterExpression filter1 = new FilterExpression();
QueryExpression query = new QueryExpression(new_charge.EntityLogicalName);
query.ColumnSet = new ColumnSet(true);
EntityCollection result1 = service.RetrieveMultiple(query);
IEnumerable<new_charge> charges = result1.Entities.Cast<new_charge>();
// You can handle an exception here or pass it back to the calling method.