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 / extract substring usin...
Power Automate
Unanswered

extract substring using compose

(0) ShareShare
ReportReport
Posted on by 367

I have string have value "[113] this is testing string". i need to convert it "this is testing string". I tried compose action with substring using Indexof. But unfortunately it doesn't work for me. Any help woulf be appreciated 🙂

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @Harry_G,

     

    I have made a test on my side, please refer to screenshot below to create the flow:

    Capture.PNG

     

    The expression in the Compose 2 as below:

    substring(outputs('Compose'),6,22)

    And you could also enter the expression below in the Compose 2:

    last(split(outputs('Compose'),'[113] '))

     

    The flow would run successfully as below:

    Capture.PNG

     

     

     

    Best regards,

    Alice

  • Harry_G Profile Picture
    367 on at

    Thanks @v-yuazh-msft. it working like a charm :).

  • kedarsk Profile Picture
    48 on at
    Thank you but you have manually mentioned the 6 and 22 as number for index and characters . How to get it automatically or in other words what if we aren't sure about what those numbers could be?
  • Community Power Platform Member Profile Picture
    on at

    How would you go about this if you wanted the values between << and >>

     

    i.e.  <<just this text>>  would return  just this text

  • PSchiager Profile Picture
    4 on at

    First(Split(Last(Split("<<just this text>>", "<<")), ">>")), which will first extract "just this text>>" and then "just this text".

  • Community Power Platform Member Profile Picture
    on at

    @PSchiager   nice thanks 🙂

  • Community Power Platform Member Profile Picture
    on at

    Hello, 
    I'm about to create a workflow using power automate, i use the french version. 
    i have a issue, i can't find the trigger compose to recover a file that a catch with microsoft form. 
    could someone please help me...
    thanks

     

  • cuser Profile Picture
    on at

    Need to Extract string between words  ,
    example like word 

    Case "" please in between these words i am extracting the string problem is extract string contains word "case "

     

    trim(first(split(last(split(outputs('Compose'),'Case')),'Please send us an order confirmation directly in response to this mail.')))

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard