locked
CRM 4.0 Mapping data from a related entity picklist RRS feed

  • Question

  • Hi,

    I currently have two entities Stock and Stock issued.

    The stock issued will be an IFRAME so when a new item is added there will be a lookup which looks for all serial numbers from the stock entity.

    What I would like is once a serial number is selected from the lookup field other fields such as item (pick list) and type (pick list) on the stock issues entity get pre-populated with that stock items details.

    Is this possible?

    Any help with this will really be appreciated.

    Thank you

    Tuesday, February 25, 2014 4:31 PM

All replies

  • Hi Kully88,

    Yes, this is very much possible. All you need to do is write a javascript and wire it with "OnChange" of the Stock lookup field on the Stock Issued form. And in the javascript code, you need to execute a fetchXML request with the Id that you have from the lookup, retrieve the results and populate the required fields on the Stock Issued form.

    You can have a look here to see how to execute a FetchXML using javascript: http://techdetector.wordpress.com/2010/10/07/fetch-xml-and-javascript-in-crm-4-0/

    Tuesday, February 25, 2014 5:02 PM