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 Platform Community / Forums / Power Automate / Condition with an expr...
Power Automate
Unanswered

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". 

 

 

Categories:
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,063 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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard