Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to fil in a option set field based on the value of another lookup field

Posted on by 2,645

I have an existing Company record that has an option set field called, "Level" and this field as the value currently listed as "High"

When I go to create a new Opportunity record (not from the company record), and then on this new Opportunity record I have a field called "Owner"  and in this field I have lookup/selected the "Company" that I want and then there is also a field called, "Level" which is the same option set as the Company record. 

My question is, How can I fill in the "Level" field with the value from the Company record when I select the Company from the "Owner" lookup field?

Hope this makes sense, thank you.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to fil in a option set field based on the value of another lookup field

    Hi USA80,

    As you menationed, “new Opportunity record I have a field called "Owner" and in this field I have lookup/selected the "Company" that I want”

    So Company and Opportunity is 1:N relationship, and owner is one lookup field you created from company in the opportunity form, and Level is one optionset field in the Company and Opportunity, right?

    If so, you can create a workflow to populate opportunity level field with the same field value from the Company automatically.

    1.Make sure the Level field is Global optionset and add it to the Company and Opportunity entities.

    2.Go to Settings > Process to create a real-time workflow in opportunity entity.

    pastedimage1623657445741v3.png

    3.Save and Active it.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    PabloCRP Profile Picture
    PabloCRP 1,086 on at
    RE: How to fil in a option set field based on the value of another lookup field

    Hi USA80,

    You should develop your own component,( Plugin, Javascript or a Power Automate Flow) for this scenacerio because those fields are different, for the Details that you wrote seems like the relationship form Company to Opportinuty is, 1:N so each time you change Owner from Opportunity go and look up for the Company related and change that value

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans