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 / Error in Slice function
Power Automate
Answered

Error in Slice function

(1) ShareShare
ReportReport
Posted on by 69

Hello Everyone,

I created a power automate flow and used switch. As condition I used slice function but it's showing an error while testing.

3ba99329-9b79-4c1f-88df-50ac26c4c907.png


Screenshot 2024-07-08 102739.png

 This is my whole Content and I just need to extract RITM0338201 as my output.
 Has anybody a clue what I have to do here, because i don't.

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @Mysterious - For Slice you need to pass a integers and you formula should be 

     

    slice(outputs('Compose'),19,30)
     
    Change the outputs('Compose') with your triggerbody.
     
    CFernandes_0-1720421138836.png

     

     

    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.

  • Mysterious Profile Picture
    69 on at

    I appreciate your help so much.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 225

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard