Notifications
Announcements
Hi, does anyone know how to remove all spaces from a string, thus concatenating it?
Example: "this is my string" when all spaces are removed it looks like "thisismystring"
@cbernier12
In the below example I have put the sentence inside a variable and used the expression to remove the whitespace.
You can also directly put the string and use the expression.
Thanks, I was trying that, however it wouldn't save. I've discovered PA is kind of finicky and you have to select OK a number of times before formulas will take.
can you tell me how can I do this in Power Automate Desktop
In Replace text action,
Enable the option "Use regular expressions for find and replace" and then in text to find use \s
This will remove all the space in your text and replace with the required character. Use \b to replace with null.
I am using this Replace Text and it is replacing the spaces with []. What am I doing wrong?
@oprandij wrote:...What am I doing wrong?
...What am I doing wrong?
Don't try to format a date as text. If you want to remove spaces in a date, use formatting expression.
The example below shows how I format a date/time to remove spaces. In the next step I compose a string using this formatted date/time with a person's name. This allows me to create a unique ID used in a later step when I assign it as a title to an entity in a document library.
Start by initializing a string variable of your invoice date, with your invoice date property as the value. Then set the variable and format the date.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional