Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

getting the available values from lookup field

Posted on by 197

Hello,

I have a filter on lookup field and After I set the preSearch I want to get all the searched/available values(not selected values/ I want values that are in the dropdown) that are within the lookupfield.

I don't know how to do it.

There are no results on the web that are suitable for me.

Can someone give me an advice ?

Thanks.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: getting the available values from lookup field

    Hi magical,

    I‘m not clear what you want to need

    As you mentioned, you have set the preSearch filter on the lookup field, and you want to get values that are in the dropdown.

    The lookup field can show all records from another entity, but you have set preSearch filter for it, so it will just show part of these records.

    Now, you want to get these records, you need Iterate through the entity with filter.

    You can try to use 'CRM REST Builder' tool to retrieve records with filter.

    pastedimage1625022056939v1.png

    pastedimage1625022336774v1.png

    Note:

    CRM REST Builder Download page: https://github.com/jlattimer/CRMRESTBuilder

    Regards,

    Leah Ju

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

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: getting the available values from lookup field

    Hello,

    The only way I can think of is to build the query that will be used in the lookup control and query the data using WebApi.

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