Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: RE: Autofill a lookup field based on another lookup field

$
0
0
You can refer this blog which has the exact code you are looking for. You need to replace the schema name as per your entity. community.dynamics.com/.../get-lookup-value-from-other-entity-and-set-it-on-the-form-using-web-api-in-microsoft-dynamics-crm If you still face issue, I would suggest to build the query in rest Builder as it will automatically use the correct field name. In the tool, select Endpoint: Web API; Action: Retrieve Single; Primary Entity: Select parent entity from where you want to copy the field; Id to Retrieve: Put anything e.g. 123 [We need to pass this id from code Field to select: select the field you want to copy Once done, click 'Create Request', this will generate the web api code for you to retrieve your parent entity record with the id you have passed. You replace this code in the above blog. You can share it here as well if you want further help. Hope this helps.

Viewing all articles
Browse latest Browse all 123975

Trending Articles



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