Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Retrieve value from entity in lookup field

Posted on by Microsoft Employee

I want to write a javascript that:

1. Retrieves Prefix, First Name, and Last Name from two different Contact lookup fields

2. Pushes that information into new fields to build salutations

I'm fairly confident I can write the second part but it's calling the field from a linked entity where I am lost. What is the command for something like that?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrieve value from entity in lookup field

    Nevermind, the icon finally appeared in the top bar of our CRM 2011.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Retrieve value from entity in lookup field

    No problem.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrieve value from entity in lookup field

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrieve value from entity in lookup field

    Yes I am using CRM 2011. Thanks Aric!

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Retrieve value from entity in lookup field

    Are you using CRM 2011?

    You can use REST API for that, to retrieve the values from the other entities.

    Here are some resources to get you started:

    The following is the Rest API Builder from Jason Lattimer, which will help you build the api queries that you need.

    crmrestbuilder.codeplex.com

    MSDN Article on using Create, Read, Update and Delete operations using the REST endpoint

    msdn.microsoft.com/.../gg334427(v=crm.5).aspx

    CRMRestKit JavaScript library to call the CRM Organization Service

    crmrestkit.codeplex.com

    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