MS CRM 3.0 “Expected ‘}’” and “Object expected” errors

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

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)

Welcome Tavi

Let’s give a big welcome to our newest author – Mr. Octavian Cucuta on Biz-Forward blog. He promises a lot 😛

Published
Categorized as Blog, News

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

Published
Categorized as JavaScript

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

Published
Categorized as JavaScript

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

Published
Categorized as JavaScript