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 / how can I trim Name at...
Power Automate
Unanswered

how can I trim Name attribute in Account entity in power automate?

(0) ShareShare
ReportReport
Posted on by 71

I have a flow that takes the user input and match with account number and output boolean if found or not. 

In CRM Accounts , my account names have spaces. for example: 

The account hava name ' Furqan' and if the user type 'Furqan', my flow wont be able to match it. 

how can I trim the spaces in power automate query so it can find the record. 

furqanmajeed_0-1667595069487.png

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @furqanmajeed 

     

    You can use trim function for this.

     

    Just write name eq 'trim(expression)'

     

    Giving a link to read all about trim function:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-trim

     

    Or if the trim does not work, you can try replace function. Replace all spaces with no space:

     

    name eq 'replace(expression,' ','')

     

    I hope this will help.

     

    If the above works for you, you can mark it as a solution and if you liked the explanation, you can give a thumbs up/kudo.

     

    Thanks.

  • furqanmajeed Profile Picture
    71 on at

    the issue is I want to trim the name field. not the expression. Is there any way I can trim the name field, The data in my crm have spaces. 

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard