Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Created by sabzilla
- //Date July 29th, 2014
- function trimPhoneCall() {
- //get notes
- var notes = Xrm.Page.data.entity.attributes.get("description").getValue();
- //set amount of characters to grab
- var length = 3000;
- //grab amount of characters length variable specifies
- var trimmedNotes = notes.substring(0, length);
- //specify field to set as trimmed notes
- var notes = Xrm.Page.data.entity.attributes.get("description");
- //set field to trimmed notes
- notes.setValue(trimmedNotes);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement