Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Creating a Lookup field from another field

Posted on by 310

Hello,

I have a Single Line of Text field called "Customer Code" in Accounts.

I need to create a lookup field in Opportunities so that the value can be looked up from Customer Code.

Is it possible to create a lookup field from another field? If yes then how?

I understand that we can create lookup fields to Account names.

Thank you.

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Creating a Lookup field from another field

    Hi,

    Unless Customer Code is it's own entity and the code is the primary field of the entity, you can't achieve this without code.

  • Huzefa Bootwala Profile Picture
    Huzefa Bootwala 310 on at
    RE: Creating a Lookup field from another field

    Hello,

    Thank you for the reply.

    Is there a way I can add Customer Code field in the lookup window manually without using any custom code.

    How would I achieve this?

    Thank you.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Creating a Lookup field from another field

    The lookup field will always display the Primary field of the related entity. Your lookup will always display the Primary field.

    You can however modify your Lookup view to display additional columns, that way you would be able to show your Customer Code field in the lookup filtered view and lookup window view.

    You can also search by that column if you add it to your account Quick Find View and Find columns.

    You can probable use custom code and call SetValue of the lookup control to display a different value, but you would have to get that value every time you make a change to the lookup field or load the form.

    Hope this helps.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans