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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filtering with toLower...
Power Automate
Unanswered

Filtering with toLower Error

(0) ShareShare
ReportReport
Posted on by 703 Super User 2024 Season 1

Hello,

 

We have a Business Central Table which can output projects. The projects have customernames, I can find these projects based on customernames. But, sometimes the customername within Business Central has for example a uppercase at the start and the searchvariable I'm using has not. 

 

See the Example below, I need to find the customername in LowerCase within BC. 

OkanAT_2-1679488667846.png

The first Expression is the error, this is the column im trying to filter and in which the output has to be in lowercase in order for the second Expression to work. Is this even Achieveable? Right now I'm getting the error because i am trying to LowerCase the column name, not the name within BC.

 

Any help is appreciated. 

 

 

 

 

 

Categories:
I have the same question (0)
  • CU22040918-0 Profile Picture
    195 on at

    Hi @OkanAT 

    The left part of eq should use Odata native tolower() function, instead of the flow one.

     

    see reference: https://stackoverflow.com/questions/13495905/odata-query-filter-conditions-and-case-sensitivity

     

    Hope this help 

    Nelson

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hello,

     

    Thanks for your reply.

    This doesn't give back the sellToCustomerNames in lowercase values

  • Verified answer
    CU22040918-0 Profile Picture
    195 on at

    Hi @OkanAT 

     

    BC does support Odata filter tolower() function.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/use-filter-expressions-in-odata-uris

    Could you please share your filter expression?

     

    Nelson

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi Nelson,

     

    Thanks for the link to the docs, I was giving the column between '', which must have not been done in order to have the values in BC in lowercase. It works. Thanks

     

    Expression i have now: tolower(columnnamewithoutdoublequites) eq toLower'value to search'

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard