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

Price level not updating in java script

$
0
0

Hi,

I want to update the default price list when open new opportunity. Please find the java script and the screen shots.  Kindly provide the solution.

var lookupData = new Array();

 var lookupItem= new Object();

lookupItem.id = '{FAEE3026-FA58-DF11-A877-001F29C516D6}';  this is correct value
lookupItem.typename = 'pricelevelid';

lookupItem.name = 'GENERAL';

lookupData[0] = lookupItem;
Xrm.Page.getAttribute("pricelevelid").setValue(lookupData);

price level is updating as shown below screen but it is not allowing to save the opportunity.

It should be below screen when select price level from  lookup normally and it is working.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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