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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need to remove Ampersa...
Power Apps
Answered

Need to remove Ampersand (&) from String!

(0) ShareShare
ReportReport
Posted on by 11

Cliffs Notes Version - We keep a SharePoint list of serial numbers of all equipment sold along with customer info.  When the Production Team ships a new piece of equipment, they add a new entry to the Serial Number Log.

 

I'm creating a flow to create a record in Salesforce for the new piece of equipment that is tied to the customer's Account. 

 

The flow works perfectly as long as there are no special characters in the customer name.  When the name has "&" in it, it janks up the entire process and returns no results.

 

Flow:

WKS_2-1710451464402.png

 

Output:

WKS_0-1710450732051.png

 

Try as a I might, I can't find a function that will actually remove or replace the "&" from the string.  It would be fine to remove all special characters because Salesforce's "LIKE" parameter works well and I could find the proper Account just as easily with "LESTER FEED GRAIN CO"

 

ETA: I've tried the Replace and Split/Concat functions.  Could the issue be related to the Customer Name column being managed metadata?  Wouldn't putting the name into a string remove any connection to the term set?

 

Any help would be greatly appreciated.

Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @WKS ,

     

    For your purposes, I suggest to use the 'replace' function in an expression: Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

  • EddieE Profile Picture
    4,650 Moderator on at

    @WKS 

    Here's a good blog on how you can do what you want. Use an array of special characters that you can add to as you please and then use Replace.

     

    https://fredrikengseth.medium.com/replace-special-characters-in-a-string-with-power-automate-fe57a26af051

     

  • WKS Profile Picture
    11 on at

    Replace doesn't work.  It's like it can't see the "&" because it assumes to it to be an operator.

     

    I've tried splitting it at the "&" and using concat to put it back together...but again, it can't see the "&" inside the dynamic content.

  • Verified answer
    WKS Profile Picture
    11 on at

    OMG.  

     

    & is not the same as &...these are two different characters.  Whatever SharePoint uses for the term set is NOT the ampersand you type from the keyboard.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard