Hello, there 🙂 Have you ever encountered this situation? You write some decent, valid JS code, throw it inside a CRM field event box, Save & Close x2, publish, test, BAM!-error? Well, provided your code is actually correct (no logical, typing or access errors), you should check the next thing. In CRM 3.0 at least… Continue reading MS CRM 3.0 “Expected ‘}’” and “Object expected” errors
Author: Cornel Croitoriu
CRM 4.0 Server – Hardcore Installing
There are moments when installing the Microsoft CRM 4.0 Server can be a real pain, if your Organization doesn’t offer you full “trust” in its AD (Active Directory). After some digging, finally found a working solution (start to end :P): step 1: Find a nice Active Directory Admin to manually create 5 groups for you… Continue reading CRM 4.0 Server – Hardcore Installing
WSDL Error: “Schema item ‘element’ named ‘string’ from namespace ‘http://schemas.microsoft.com/crm/2006/WebServices’. […]”
Hey, Have you ever encountered the following error?“Schema item ‘element’ named ‘string’ from namespace ‘http://schemas.microsoft.com/crm/2006/WebServices’. The global element ‘http://schemas.microsoft.com/crm/2006/WebServices:string’ has already been declared.” That’s what I got when I update my webservice references. Totally nagging and a real pain. That error prevented me from being able to access all the custom fields I created on… Continue reading WSDL Error: “Schema item ‘element’ named ‘string’ from namespace ‘http://schemas.microsoft.com/crm/2006/WebServices’. […]”
How to extract Email attachments IDs (CRM 3.0)
Howdy, At some point, I was requested by a manager to extend the functionality of the email entity (multiplying the number of messages sent) and I came across the attachment side. The following function is my solution to the occurring issue: // Author: Octavian Cucuta ( octavian.cucuta [ AT ] gmail.com )// Release: 1.0.0.1 (… Continue reading How to extract Email attachments IDs (CRM 3.0)
JavaScript code reuse in CRM
In most of the cases, you don’t want to copy-paste your custom methods in your CRM events source code each time you need them. So, here’s an easy approach on javascript code reuse in CRM. First of all, make sure you have these 2 files: LargeNumber.js and StringsExtended.js located in a custom folder – named… Continue reading JavaScript code reuse in CRM
Welcome Tavi
Let’s give a big welcome to our newest author – Mr. Octavian Cucuta on Biz-Forward blog. He promises a lot 😛
Large Integer division remainder
Recently, I had to obtain the remainder of a (seriously) large integer division (32 digits long divided by another shorter integer; base 10) and found that JavaScript reliably supports operations only on 15-digit long integers. Thus, this what I came up with: // Gets the remainder from the division operation for LARGE numbers// Support: positive… Continue reading Large Integer division remainder
OnChange Event
When starting to work with CRM, one of the first things you learn is how to put some script on the onChange event. It’s easy to do this and it really works. Let’s say you want to fire that script at the first moment your page is loaded.In CRM 3.0 you could do that writing… Continue reading OnChange Event
Random Custom Serial Number Generator
A brief example on how to generate random serial numbers with JavaScript. Enjoy! // Symbols Array (A-Z, 0-9) var Symbols = new Array(); // Gets the ascii code for a certain character function GetAsciiBySymbol(letter) { var code = letter.charCodeAt(0); return code; } // Populates a certain array with the A-Z, 0-9 symbols function PopulateArray(array) {… Continue reading Random Custom Serial Number Generator
Replace Chars in String – prototype example
An elegant way to replace certain chars from a string with new ones: // Custom method for replacing certain chars from a string with new onesfunction ReplaceChars(oldValue,newValue) { var newText = this.split(oldValue); newText = newText.join(newValue); return newText;} // Attach the custom method to string objectString.prototype.Replace = ReplaceChars; // Usagevar myString = “Hello World!”;alert(myString.Replace(“o”,”0″)); // will… Continue reading Replace Chars in String – prototype example