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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

How to update lookup field from one entity to another entity

(0) ShareShare
ReportReport
Posted on by 45

In Opportunity i have 2 lookup fields called Opportunity category & Primary solution division.Now in quote product(entity) I have 2 lookup fields called Product division & Product category.I just want to update values into these two lookup fields from the Opportunity lookup fields whenver we create a quote product for the same opportunity.See my below screenshots.Both are different Entities & its not possible with workflow and business rule & field mapping.So Pls help me on this.

4380.PNGQuote Product fields

I have the same question (0)
  • Charan Raju C R Profile Picture
    7 Moderator on at

    Hi Irfan,

    I assume the relationship between Opportunity and Quote Product is as below. Please correct if my assumption is wrong.

    Opportunity --(1:N)--> Quote --(1:N)--> Quote Product

    Your requirement is to map Primary Solution Division and Opportunity Category from Opportunity to Product Division and Product - Category in Quote Product respectively.

    To achieve this, you can use both option 1) & 2) or only option 2) below.

    1) Client side, you need to create a javascript function onload of Quote Product form to fetch and update these two lookup fields from Opportunity via Quote.

    2) Server side, you can create a plug-in on pre-create (preferred) of Quote Product to fetch and update the lookup fields from Opportunity via Quote.

  • Suggested answer
    Jupiter Alappat Profile Picture
    235 on at

    Hi Irfan,

    Please check the comment by Charan and hope it helps you to move forward.

    If you still have any questions please do let us know. Glad to help.

  • irfanshaikh786 Profile Picture
    45 on at

    Thank you charan & Jupitar for replaying on my post.

    I have check with script & plugin but its not working can u plz share the script code.Also if needed i will share the fields name & logical names.This will be helpful for me

  • mehdi.sadeghi Profile Picture
    60 on at

    hi you can solve this problem by two way:

    1- in sql server you must create a daily sql job that daily update this lookup field from source (asynchronous)

    2- create a step workflow (by visual studio) on Quote Product then call this step by real time workflow for update your fields (synchronous)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 151 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 134

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans