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

Announcements

News and Announcements icon
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,985 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 112 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans