Retrieving Product Id based on Product(Name) entered in lookup field
-
Friday, June 01, 2012 11:07 AMAnswerer
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.
All Replies
-
Friday, June 01, 2012 11:18 AM
hi
your can use webservice retrive method to do that
for help http://danielcai.blogspot.com/2010/01/crm-web-service-javascript-toolkit.html
-
Wednesday, June 06, 2012 5:59 AM
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
-
Wednesday, June 06, 2012 6:20 AMModerator
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.- Proposed As Answer by Mahender PalMVP, Moderator Wednesday, June 06, 2012 6:20 AM