Get and Set in MS Crm using JavaScript
Getting the data from the form using JavaScript in the JavaScript, for every data type common to get the data. there some difference, in Crm we have following type of data types. we will discuss one by one. Single line of text, two option set, whole number, currency, decimal number, date and time, floating number, option set. for all these data types getting data is common. fist we need to create function with name like below for getValue return type is Number and for the getText return type is string function nameoffunction (executionContext){ // it will get the all the form data var formContext = executionContext .getFormContext(); var variablename= formContext. getAttribute("Filedschemaname").getValue(); // for getting the text of option set var variablename= formContext. getAttribute("Filedschemaname").getText(); } For the data type of lookup and customer we have a small chnage var lookupId = formContext. getAttribute ("fieldname").ge...