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 Automate
Answered

Slice function

(1) ShareShare
ReportReport
Posted on by 69

Hello Everyone,

I needed to extract a substring from a string and I used the slice function there. But it's showing an error.

Mysterious_0-1720419991716.png

 

 

Mysterious_1-1720419991988.png

 

 This is my whole Content and I just need to extract RITM0338201 from this.
Does anybody have a clue what I have to do here because I don't?

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @Mysterious 

     

    You can use below expression to get the required value:

    first(split(last(split(triggerOutputs()?['body/body'],'Compliance Detail - ')),' '))

     

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Mysterious Profile Picture
    69 on at

    Can I use this expression inside switch.

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Yes, you can use the expression inside "Switch" action.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

     

     

  • Mysterious Profile Picture
    69 on at

    I am grateful for your help.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard