Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Make Lookup field connected to Business Central table case insensitive

(0) ShareShare
ReportReport
Posted on by

Hello!

 

I have been scratching my head because of this one for a while, so I am making another attempt at a Community Post.

 

I have a Dataverse table that contains a single field. This field is a lookup field to my Business Central Item table. The field itself works great, I can use it in a form, display its data, and select items from the lookup. I can also search in it, but this is where my problem stems from:

 

As an example, I will search for items with the word "Schestowitz", just because I thought it was a fun word.

 

hagru_1-1718104457105.pnghagru_0-1718104445135.png

As you can see in the first example, I am searching for "Sche" with a capital S, and I am getting three results.

In the second example I am searching for "sche" with a lower case S, and I am not getting any results.

 

The same would be the case for every other word. I will only get results for items with the exact case I am searching for, and it is quite annoying.

 

hagru_2-1718104733497.png

hagru_3-1718104748448.png

hagru_4-1718104771779.png

 

Here are some more info about the Lookup field that might be relevant.

 

Is there any way to make it case insensitive?

 

 

Categories:
  • Hagru Profile Picture
    on at
    Re: Make Lookup field connected to Business Central table case insensitive

    Hello @anandm08 

     

    Those lookup fields being strictly case sensitive is ridiculous to be honest. Hope an update allowing for case insensitive searches is on the roadmap for future updates.

     

    I see you suggest one approach, which will probably work, but will still not cover every case, as people might be searching in all caps, or using upper case at the start of the search, and I feel it will not be sufficient enough for my case. Are there any other approaches that could fill the requirement?

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Make Lookup field connected to Business Central table case insensitive

    hi @hagru ,

    To make the search in your Dataverse table's lookup field case insensitive, you have a few options. Unfortunately, Dataverse itself doesn't provide an out-of-the-box setting to make lookup field searches case insensitive directly. However, you can work around this limitation using one of the following approaches:

    1. Use a Custom Search Field

    You can create a new calculated field in your Dataverse table that stores the lowercase version of the lookup field value. Use this field for searching instead. Here’s how you can do this:

    1. Add a New Field: Add a new text field to your Dataverse table, for example, ItemSearchField.
    2. Create a Flow or Plugin: Use Power Automate or a Dataverse plugin to populate this field with the lowercase version of the lookup field value whenever a new item is created or the lookup field is updated.
      • In Power Automate, create a flow that triggers on create/update of the record, converts the lookup field value to lowercase using an expression, and updates the ItemSearchField.
      • In a Dataverse plugin, write a plugin that triggers on create/update of the record, converts the lookup field value to lowercase, and updates the ItemSearchField.
    3. Search Using the New Field: When performing searches, use the ItemSearchField instead of the original lookup field.

     


    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard