Hello All,
Below is my code in 4.0
//Create the ConditionExpression.
CrmSDK.ConditionExpression condition = new CrmSDK.ConditionExpression();
//Set the condition for the retrieval to be when the project value is for the current project.
condition.AttributeName = "new_payratesid";
condition.Operator = CrmSDK.ConditionOperator.Like;
condition.Values = new string[] { EntityGUID };
//Create the FilterExpression.
CrmSDK.FilterExpression filter = new CrmSDK.FilterExpression();
//Set the properties of the filter.
filter.FilterOperator = CrmSDK.LogicalOperator.And;
filter.Conditions = new CrmSDK.ConditionExpression[] { condition };
//Create the Order Expression for sorting
CrmSDK.OrderExpression orderEffDate = new CrmSDK.OrderExpression();
orderEffDate.AttributeName = "new_effectivedate";
orderEffDate.OrderType = OrderType.Ascending;
CrmSDK.OrderExpression orderExpDate = new CrmSDK.OrderExpression();
orderExpDate.AttributeName = "new_expirydate";
orderExpDate.OrderType = OrderType.Ascending;
//Create the QueryExpression object.
CrmSDK.QueryExpression query = new CrmSDK.QueryExpression();
//Set the properties of the QueryExpression object.
query.EntityName = CrmSDK.EntityName.new_payrate.ToString();
query.ColumnSet = cols;
query.Criteria = filter;
query.Orders = new OrderExpression[] {orderEffDate, orderExpDate};
I want to change the above code as per crm 2013 using late bound , please kindly let me know how to change the above code.
Note:- Specifically i want to change the orderby code.
please kindly suggest me the best solution.
*This post is locked for comments