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);
}