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 / Flow: Find and remove ...
Power Automate
Answered

Flow: Find and remove parts of string from the right sight

(0) ShareShare
ReportReport
Posted on by 5

Hello,

 

I've a question: I want to remove parts of my string beginning from the right side until a certain point in my string. How would I accomplish that?

 

An example: my string contains this domain:

 

http://www.domain.com/storage/file.docx

 

First, I want to search for the dot from the right side. When I find the dot, I want to remove it and everything that is on the right side of it (this is dynamic, so it can be .a or even .aaaaaaa), so that my output is:

 

http://www.domain.com/storage/file

 

Categories:
  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey Mate @layentara 

     

    I assume this is what you need -

     

    CFernandes_0-1636028972341.png

     

     

    If yes - Formula is 

     

    replace(outputs('Compose'),concat('.',last(split(outputs('Compose'),'.'))),'')
     
    CFernandes_1-1636029007273.png

     

    Replace the outputs('Compose') from the above with your variable.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • layentara Profile Picture
    5 on at

    Thank you very much, I appreciate your support! It works 🙂

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @layentara I am glad I could answer your question...

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 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard