View difference between Paste ID: nFGhvH9G and KwN43RQj
SHOW: | | - or go back to the newest paste.
1-
//Created by felda
1+
//Created by sabzilla
2-
//Date July 30th, 2014
2+
//Date July 29th, 2014 
3
4
function trimPhoneCall() {
5
    //get notes
6
    var notes = Xrm.Page.data.entity.attributes.get("description").getValue();
7
    //set amount of characters to grab
8
    var length = 3000;
9
    //grab amount of characters length variable specifies
10
    var trimmedNotes = notes.substring(0, length);
11
    //specify field to set as trimmed notes
12
    var notes = Xrm.Page.data.entity.attributes.get("description");
13
    //set field to trimmed notes
14
    notes.setValue(trimmedNotes);
15
}