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 Automate / Cannot remove Space fr...
Power Automate
Answered

Cannot remove Space from flow, perhaps an NBSP

(0) ShareShare
ReportReport
Posted on by 13

I have tried all elements that I understand can be a space (admittedly not that many) with the string

 

replace(outputs('Split_Dates_to_new_Lines'),'&nbsp','')

but each time i always receive the same issue back.

 

My Flow is 

Receive Email
Convert HTML to text

Consolidate lines/form array.

 

I am as far as isolating the two dates i need to this level 13-06-2022  21-06-2022  , but cannot for the life of me remove the spaces.

 


Html is below, i want to split these two dates clearly in order to automatically create a calendar invite from those two dates, but currently incredibly stuck as to how to separate them

 

 

 
Beste collega,



Soort verzoek: Aanvraag voor afwezigheid
Werknemer: NameRedacted.
Status: In aanvraag

Type: Verlofuren - / Holidays -






















Datum van    t/m    Tijdslot    Tijd
13-06-2022  21-06-2022  Hele dag  08:45-17:30


Opmerking medewerker:
Holiday
Categories:
  • MH88 Profile Picture
    13 on at

    Process:

    Screenshot 2022-05-04 at 18.37.53.png

    Compose'SplitInToLines':
    split(outputs('Html_to_text')?['body'],outputs('newLine'))
    ----

    Screenshot 2022-05-04 at 18.39.23.png

    Code: length(trim(item()))
    ---

    Screenshot 2022-05-04 at 18.41.23.png

    Dates: split(body('Remove_Empty_Lines')[5],'Tijd')[2]

    Split Dates: split(outputs('Dates'),'Hele')[0]
    Remove Spaces: replace(outputs('Split_Dates_to_new_Lines'),'&nbsp','')

    No matter how hard i try to remove these dang spaces I cant do it

  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi,

    Can you provide the output of  this action outputs('Split_Dates_to_new_Lines'). 

     

    It will be easier to analyse. 

  • MH88 Profile Picture
    13 on at

    Screenshot 2022-05-04 at 18.48.17.png


    Raw output copy paste here:

    "13-06-2022  21-06-2022  "
  • Verified answer
    MH88 Profile Picture
    13 on at

    Solved.

    I Parsed the Body copy to a Compose

    Then before converting to plain text removed all nbsp; instances

     

    replace(triggerOutputs()?['body/body'],' ','-')
     
    Screenshot 2022-05-05 at 02.47.41.png

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard