Older than – Query operator in CRM 2015 Update1

Hi, Older Than operator is being introduced which will perform against date time field in Update1. Operator Allowed Values Supported Version olderthan-x-minutes 1-1440 v7.1+ olderthan-x-hours 1-2000 v7.1+ olderthan-x-days 1-500 v7.1+ olderthan-x-weeks 1-100 v7.1+ olderthan-x-months 1-100 v3.0+ olderthan-x-weeks 1-100 v7.1+ olderthan-x-years 1-100 v7.1+ Note: These are available only in CRM 2015 Update1. Thank you, Sreeni Pavalla

Upsert Method – CRM 2015 Update 1

Hi, There is a new method named Upsert is introduced which will come handy when we are working data. Upsert = Update or Insert. This reduces the complexity of data operation. In situations we may not know that we should update or insert as we are not sure. By using Upsert method,  UpsertRequest request = new UpsertRequest()Continue reading “Upsert Method – CRM 2015 Update 1”

What is Alternate Key – CRM 2015 Update 1

Hi , They have introduced cool concept named Alternate Key in 2015 Update 1. Alternate key can be used as a unique identifier for the record. Why we need Alternate key as we already have primary key? This will come handy when you are integrating CRM data with external databases which might deal with natural data type than GUID’S. WhichContinue reading “What is Alternate Key – CRM 2015 Update 1”

Update advanced Settings(AggregateQueryRecordLimit,ExecuteMultipleMaxBatchSize and etc)

Hi, Here is the way to Update advanced settings. Fro example: Default batch size of Execute multiple request is 1000, In some cases we may need to update to more than 1000. It can be updated through UpdateAdvancedSettingsRequest Here is the complete code which can help you. DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(new Uri(“http://crmtest/XRMDeployment/2011/Deployment.svc”)); RetrieveAdvancedSettingsRequest request3 =Continue reading “Update advanced Settings(AggregateQueryRecordLimit,ExecuteMultipleMaxBatchSize and etc)”

CRM 2015 – Javascript issues with Tablet (Ipad and etc)

Hi, I have been working on tablet one of the projects. I have come through some of the changes where JavaScript doesn’t support in Tablet. So to differentiate, Have you JavaScript checked for client. if (Xrm.Page.context.client.getClient() == “Mobile”) { //Write your logic here for Tablets } else { //Rest of code goes for Web andContinue reading “CRM 2015 – Javascript issues with Tablet (Ipad and etc)”

Limitations of Execute multiple request

Hi, Here are few limitations of execute multiple request. 1. Cannot invoke  execute multiple inside execute multiple. 2. Batch size limit is 1000. If you add more than 1000 it will throw a fault exception. 3. Only 2 concurrent executions can happen at a time, If you try running 3rd one, It will throw an exceptionContinue reading “Limitations of Execute multiple request”

Unified Service Desk – Create Sessions from Custom hosted control

Hi, To create a customer from type of custom hosted control, You need to inherit the interface IContextManager. Oncee you implement it, It should give you few methods which will be needful if you are working with sessions. GenerateSessionName // This will generate the session name , Put your logic here RenewSession SetContext // sets the contextContinue reading “Unified Service Desk – Create Sessions from Custom hosted control”

Unified Service Desk – Logged in user details in Hosted controls

Hi, You may need Logged in user details for different purposes in hosted controls. Here is the way to get them from replaced parameters. // This will give you actual logged in customer var customer = (Microsoft.Crm.UnifiedServiceDesk.Dynamics.DynamicsCustomerRecord)localSession.Customer.DesktopCustomer; Dictionary<string, CRMApplicationData> userInfo = null; if (!customer.CapturedReplacementVariables.TryGetValue(“$User”, out userInfo)) return; CRMApplicationData fullname = null; if (!userInfo.TryGetValue(“fullname”, out fullname))Continue reading “Unified Service Desk – Logged in user details in Hosted controls”