Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

unable to save opportunity record when using js to set default price list

$
0
0

So me as the administrator CAN save a record when using this code, however people my sales team (salesperson security role) is unable to save a record once I implement this code as an onload event. Any idea guys? Please help.

function defaultpricelistset(){


var value = new Array();
value[0] = new Object();
value[0].id = '{6B1FD7F7-6941-E511-983B-005056A90004}';
value[0].name = 'Default';
value[0].typename = 'pricelevel';

Xrm.Page.getAttribute("pricelevelid").setValue(value);

}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>