web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

split and store values in variables

(0) ShareShare
ReportReport
Posted on by 265

I would like to ask for help with this !
I am separating this string by this \

 

176931_\\10.1.1.206\Storage\pdf\1100-LEG\34_17584.pdf

 


I want to get this string 

 

1100-LEG

 

(the number will always be changing, 1100-LEG, 2100-LEG, 4322-LEG) and save it in a variable


elaaadani_0-1619496663842.png

I saved everything in an array, how can I get to the value I need? Thank you very much in advance
Have a great week everyone

I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Moderator on at
    Re: split and store values in variables

    @elaaadani 

    Use below expression

     

    ; where you replace outputs('Compose_2') with your variable or compose data operation

    split(outputs('Compose_2'),'\')[5]

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard