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 / Set Variable For Paren...
Power Automate
Answered

Set Variable For Parenthesized Text

(0) ShareShare
ReportReport
Posted on by 56

Hi,

I have a flow setup which saves email attachments to a specific SharePoint folder. This works as expected, but I'm also looking to append the folder name with an additional value.

The current flow uses the "When new email arrives (V3)" trigger and references the subject name. Each of these emails contains an additional value in parenthesis at the end of the subject line, i.e.:

 

  • "My Email #1 (Some_Value)"
  • "My Email #2 (Some_Other_Value)"

I'm trying to determine how to extract the parenthesized text in each of the subject lines, i.e.:

varValue = Some_Value

varValue = Some_Other_Value

 

(for the respective examples..)

 

Any help would be appreciated!

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

    Hi @bcanfield83 ,

     

    Do you want to extract the parenthesized text and save it to variable?

    You can use split to get the parenthesized text.

    Here is a method for your reference.

    vmengmlimsft_0-1710422648133.png

    vmengmlimsft_1-1710422665288.png

    last(split(first(split(subject dynamic content,')')),'('))

     

     

     

    Best regards,

    Rimmon

     

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 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard