Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to get a record column value based on the selected lookup value?

(0) ShareShare
ReportReport
Posted on by 190

So I have a form that has the item lookup field.  When i select the value for the field, I want the value of another column from that same selected lookup record.

For example one of the records of the items table:

primary name = glue, chemical = no

So in a form, when i select glue, I want another field in the form to show 'no'.

Is it better to use javascript or power automate?  How to do it for each?

  • bp3378 Profile Picture
    190 on at
    RE: How to get a record column value based on the selected lookup value?

    Guido Preite

    How do I connect it to the lookup?  The chemical field in this form is a text field, but the  column attached to the lookup field is a choice.  

  • Suggested answer
    Guido Preite Profile Picture
    54,075 Moderator on at
    RE: How to get a record column value based on the selected lookup value?

    do you need to copy or just to show the value? because if you need to show you can use a quick view form connected to the lookup, if you need to copy, you can do with javascript (attach to the onchange event and use a Xrm.WebApi call to retrieve the field and copy to the desired field)

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,935 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans