Skip to main content

Notifications

Power Automate - Building Flows
Answered

Slice function

(1) ShareShare
ReportReport
Posted on by 67

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?

  • Mysterious Profile Picture
    Mysterious 67 on at
    Re: Slice function

    I am grateful for your help.

  • ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: Slice function

    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
    Mysterious 67 on at
    Re: Slice function

    Can I use this expression inside switch.

  • Verified answer
    ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: Slice function

    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.

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard