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.
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.
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 60 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 36 Most Valuable Professional