Showing posts with label Default currency in CRM 2013. Show all posts
Showing posts with label Default currency in CRM 2013. Show all posts

Wednesday, July 23, 2014

Set Default Currency



function setDefaultCurrency() {
var lookup = new Array();
lookup[0] = new Object();
lookup[0].id = '{0929D216-DDE7-E311-93EF-74D43599CE45}';  // your currency ID
lookup[0].name = 'Rupee';// Your currency name
lookup[0].entityType = 'transactioncurrency';
Xrm.Page.getAttribute('transactioncurrencyid').setValue(lookup);
}