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. 

  • Sonika Vishwakarma Profile Picture
    5 on at
    RE: Populate Lookup Field with Value from Related Table

    You can use javascript for this functionality

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Populate Lookup Field with Value from Related Table

    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/

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans