web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Custom Lookup with "Contains" Filtering - Mixed Behavior Issue

(1) ShareShare
ReportReport
Posted on by 2

Hello everyone,

I'm currently working on customizing a lookup field (FormStringControl without dataset) in Dynamics 365 Finance and Operations to filter results based on a "contains" condition rather than the default "begins with" behavior.

Here’s the issue I'm facing:

When I start typing in the field, the lookup only returns results that "begins with" the typed text.

However, when I press the lookup button, it does filter based on a "contains" condition, returning results that contain the text anywhere in the string.

So, it’s partially working, but not consistently. Ideally, I’d like the contains filter to be applied whether the user is typing in the field or clicking the lookup button. Any advice or examples would be very helpful!

Thanks in advance for any help!

 

Here's my code

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 91

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 78 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans