Many a times I run into this particular situation and somehow I observe people still retrieve all records and then loop through to get the total number of records. It is very easy to get it using the code given below.
QueryExpression query = new QueryExpression("account");
query.ColumnSet = new ColumnSet(true);
query.Criteria.AddCondition(new ConditionExpression("accountid", ConditionOperator.NotNull));
query.PageInfo = new PagingInfo();
query.PageInfo.Count = 1;
query.PageInfo.PageNumber = 1;
query.PageInfo.ReturnTotalRecordCount = true;
EntityCollection result = this.ServiceProxy.RetrieveMultiple(query);
int totalRecords = result.TotalRecordCount;
This is a long due post almost a year or more. I was working with an ADFS 2.0 setup on a single box (Development only) and was facing challenges with installation and configuration of IIS Host Headers which will allow me to complete required steps for ADFS 2.0 setup for Microsoft Dynamics CRM 2011. When you are configuring a wildcard SSL certificate (*.crmxpress.com) in IIS snap-in you will notice that Host name is disabled when you try to configure site binding. After a little research, I found an article that described the steps to enable the host name.
- Open Microsoft Management Console (MMC) by Start -> Run -> Type MMC -< Enter.
- File -> Add/Remove Snap-ins.
- From the list of Snap-ins, select Certificates and add it to Console Root.
- Select appropriate option, in my case, it was My user account but you can select Service account or Computer account based on your configuration.
- Once the Snap-in has been added locate the certificate and right click-> Properties.
- In General tab, you will see Friendly name field. Enter *.<<yourdomainname>>.com or appropriate value based on your certificate.
- Click on Ok and now you can configure the site bindings and configure the host header.
After a long time I am writing a post on CrmXpress and I will post my story so far, separately.
As of this post, I have a very important announcement to make. There is yet another release from CrmXpress and this time it is CrmXpress OptionSet Manager For Microsoft Dynamics CRM 2011. As the name suggests it's a very simple utility to manage OptionSets [Local and Global] within CRM 2011 and helps to automate really boring tasks i.e. to maintain [CRUD] option sets manually.
Here is a screenshot from the documentation :
Click Here to see the documentation in case you need any help with the usage of the app.
Click Here to download the latest stable build. As usual we intend to develop it further and we appreciate your feedback on the same.
PS: Watch out for few more CrmXpress releases in very near future.
I have recently completed a set of exams [CRM 2011 and .Net 4.0] and almost thrice a week I check if new exams are released on CRM 2011, especially Extending Microsoft Dynamics CRM 2011 as this one is very important for CRM/xRM developers out there.
And good news is this exam is already out. Surprisingly the release date is 29th December 2011, I mean how many of us would have thought of checking released exams during the holiday season?
Anyways I am glad it is finally here and I intend to give it a shot ASAP. If you are looking for more information about the exam then follow this link.