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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Condition with an expression to convert text to lower case

(0) ShareShare
ReportReport
Posted on by 14

I have a flow in power automate which is triggered by a form response, it collects the responses, and then runs through a condition to check if an answer to a specific question matches certain criteria before performing an action.

 

I'm trying to have the condition pull a response to the question "who is submitting this" and then if it contains for example Company A or Company B then it proceeds down the yes path. The issue I'm having is that it is case sensitive. To account for this im using an expression to convert the response to lower case. However when i try to use the following expression: 

toLower(outputs('Get_response_details')?['body/who_is_submitting_this'])

it doesn't proceed down the yes path regardless of the answer. How can i modify this to continue down the yes path as long as it matches either "Company A" or "company a". 

 

 

I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at
    Re: Condition with an expression to convert text to lower case

    Hi there, 

     

    Are you able to post screenshots of what you have so far? 

    Your approach, as described, should work... 

  • grantjenkins Profile Picture
    11,059 Moderator on at
    Re: Condition with an expression to convert text to lower case

    Can you put your expression into a Compose and run the flow to check what it's returning? It may just have some leading/trailing spaces, or perhaps new line / carriage return, etc.

    toLower(outputs('Get_response_details')?['body/who_is_submitting_this'])

     

    I would suggest trimming the data before or after using the expression just to be sure.

    //Either of these expressions would trim the data
    
    trim(toLower(outputs('Get_response_details')?['body/who_is_submitting_this']))
    
    toLower(trim(outputs('Get_response_details')?['body/who_is_submitting_this']))

     

    And in your condition, you would be checking against a lowercase comparison such as: "company a".

  • Verified answer
    sbncoco Profile Picture
    14 on at
    Re: Condition with an expression to convert text to lower case

    Thank you both for your replies. This ended up being quite simple... My expression was correct, I just had it in the wrong side of the condition block. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard