Retrieving Product Id based on Product(Name) entered in lookup field
-
1. června 2012 11:07Přispěvatel
Hi,
I want to retreieve the product number or id in quote entity based on product(name) entered in the existing product lookup field.
Thanks & Regards, MS CRM Consultant, V.Surya.
Všechny reakce
-
1. června 2012 11:18
hi
your can use webservice retrive method to do that
for help http://danielcai.blogspot.com/2010/01/crm-web-service-javascript-toolkit.html
-
6. června 2012 5:59
Hi,
You can solve your case by using Retrievemultiple method on change of the product lookup field.
http://mileyja.blogspot.com.au/2011/03/crm-2011-retrievemultiple-calls-in.html
Regards, Kyaw Kyaw Tun
-
6. června 2012 6:20Moderátor
Hi Surya,
you can refer my post, I have fetched default unit id based on it's name, in the same way you can get product dedtails based on product name
http://mahenderpal.wordpress.com/2012/01/24/setting-default-unit-in-product-form-using-javascript/
you just need to modiyfy code with entityname and need to get product lookup name and pass it to get other details
you can get name from lookup field like below
var _name=Xrm.Page.getAttribute(“Nameof lookup field”).getValue()[0].name;
Conatact Me
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Navržen jako odpověď Mahender PalMVP, Moderator 6. června 2012 6:20