-
Continue reading →: ‘http://event’ pop-ups with hosted controls of Hosting type ‘IE Process’ – USD
In my USD, I have a hosted control of type “IE Process”. Whenever it gets loaded, I was getting “http://event” IE pop-up and its blocking configured events of Hosted control to be triggered. Reason: These popups occur in IE 11 When the protected mode of IE set to ‘Off’ for…
-
Continue reading →: Retrieve and Update record with alternate key using Web API – CRM 2016
Alternative Keys are useful to retrieve or update the records without the need of GUID. It avoids the overhead of retrieving record’s GUID while update operation. In conventional way, to update an Account record from external web application, you would need to get the GUID first and then update. With alternate key, you…
-
Continue reading →: JScript to Create record and its related record using Web API – CRM 2016
Below is the script snippet to create ‘Account’ record using Web API. function createAccount() { var clientUrl = Xrm.Page.context.getClientUrl(); var req = new XMLHttpRequest() req.open(“POST”, encodeURI(clientUrl + “/api/data/v8.0/accounts”), true); req.setRequestHeader(“Accept”, “application/json”); req.setRequestHeader(“Content-Type”, “application/json; charset=utf-8”); req.setRequestHeader(“OData-MaxVersion”, “4.0”); req.setRequestHeader(“OData-Version”, “4.0”); req.setRequestHeader(“Prefer”, “odata.include-annotations=*”); // Set Account Object var objAccount = {}; objAccount.name = “Rajeev…
-
Continue reading →: JScript to retrieve and execute view (Predefined Query) using Web API – CRM 2016
Assume you would need to retrieve ‘Active Accounts’ from your script, you can either retrieve by building FetchXML from scratch or simply use Web API to execute existing ‘Active Accounts’ view query with no need of writing Fetch XML. Using Web API we can retrieve and execute predefined queries (i.e., System…
-
Continue reading →: ‘Duplicate record execution’ issue with System.Timer Elapsed event – Windows Service
We have a window service with System.Timer control ‘timerExecuteQuery’, which periodically polls the records from Data Base and process. this.timerExecuteQuery= new System.Timers.Timer(3) { AutoReset = true }; this.timerExecuteQuery.Start(); this.timerExecuteQuery.Elapsed += this.TimerExecuteQuery_Elapsed; Everything seems working fine until we noticed few records executing twice causing inconsistency. The issue was random and unable to reproduce…
-
Continue reading →: Switch Business Process Flow using Jscript based on CRM form’s field value
Recently we got a requirement to switch the Business process on Case form based on ‘Case Origin’. Its easily achievable using Jscript “setActiveProcess” method. Xrm.Page.data.process.setActiveProcess(processId, callbackFunction); ‘processId‘ is the GUID of the ‘Business Process Flow’. You can copy the GUID from URL. Go to ‘Settings –> Processes’ open the ‘Business Process…
-
Continue reading →: Build Auto Complete Text Box using Jscript – CRM 2016
In CRM 2016, we got showAutoComplete and hideAutoComplete methods to configure the auto-completion experience in text controls in forms. In this article, I am going to configure “Auto Complete” feature for my “Locality” text box on my Account form. JScript: function suggestLocality() { // List of sample Locality names to suggest accounts…
-
Continue reading →: Task Flow – CRM 2016
“Task Flow” is a new feature available with CRM 2016 online update and is currently on preview mode. Task flows are targeted for phones or tablets. You can configure set of steps, where user perform day to day and package that as a ‘Task Flow’. “Task Flows” are somewhat similar to…
-
Continue reading →: System.Web.HttpUnhandledException – While opening a CRM record
Other day we were getting “Unexpected” exception while opening a ‘Contact’ record. There were no error details to check at application level. When I verified my CRM application server’s Event viewer, there was below error log Exception of type ‘System.Web.HttpUnhandledException’ was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)…
-
Continue reading →: CRM 2016 – Voice of customer’s survey
Capturing customer feedback is crucial in any Service industry to serve Customer better. In Dynamics CRM, Survey feature was the ask from many customers across the world. It has been addressed in the latest release of CRM 2016. “Voice of the Customer survey” is a new feature which is in preview…


![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)