web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Populate Lookup Field with Value from Related Table

(0) ShareShare
ReportReport
Posted on by 20

On Price list items you select a product and the unit populates based on what is on the Product Table. This is OOB

Product:
1. default Unit lookup 

Price List Item
1. Product
2. default Unit lookup from the Product

I need to add this logic to a field service price list item. I had to create the lookup field for the Unit. But when I populate the product, it does not populate. I used field mappings and it does not work. 

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    HI,

    Field mapping will not help you here. You will need to use javascript code to set the lookup based on related entity.

    docs.microsoft.com/.../retrieverecord

    once you retrieved the field from related entity using above web api, you can set the lookup using below code -

    community.dynamics.com/.../how-to-set-lookup-field-value-using-javascript-dynamics-crm

    You can also use Workflow to set the lookup field from related entity but filed value will be set once you save the record.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Sonika Vishwakarma Profile Picture
    5 on at

    You can use javascript for this functionality

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans