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 / Getting subject from e...
Power Automate
Unanswered

Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

(1) ShareShare
ReportReport
Posted on by

hello Gang, using the attached workflow i can't get the subject line as an option in the dynamic content 

 

I would like to initiate a variable for the subject line and then be able to use substring to extract 

 

Hoping to extract the 780449HDCT and the date 20230821 from the subject line780449HDCT_ServReq_1-549147422411_20230821

 

 

image.png
Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,922 Super User 2026 Season 1 on at

    Hi @vandam2 ,

     

    Please use the folllowing compose actions:

     

    split(variables('test1'), '_')[0]
     
    split(variables('test1'), '_')[sub(length(split(variables('test1'), '_')), 1)]
     
    trice602_0-1692734190208.png

     

  • vandam2 Profile Picture
    on at

    wow you really are a rockstar 🙂  , 

    do you know what action i need to be able to find the 'Subject' as a dynamic content option? (so i can save it to a variable)

  • trice602 Profile Picture
    15,922 Super User 2026 Season 1 on at

    Hi @vandam2 ,

     

    Yes, your Subject is going to be dynamic content from your Trigger.  You may need to search for it but it will be there.

     

    trice602_0-1692734853922.png

     

  • vandam2 Profile Picture
    on at

    do i need to add another trigger (i tried Get a thread post, but no luck)

    vandam2_0-1692737176172.png

     

     

  • trice602 Profile Picture
    15,922 Super User 2026 Season 1 on at

    Hi @vandam2 ,

     

    Can you use When a new email arrives in a shared inbox?

     

     

  • vandam2 Profile Picture
    on at

    unfortunately not because i am having them send to office 365 group

  • trice602 Profile Picture
    15,922 Super User 2026 Season 1 on at

    Understood.  What are your dynamic options from this trigger?  There must be some value that we can use.

     

  • vandam2 Profile Picture
    on at

    there are lots to choose from but not 'subject' lol

     

    also had look at this topic https://powerusers.microsoft.com/t5/Building-Flows/How-to-get-subject-from-Office-365-Groups-Mail-Connector/td-p/677858#:~:text=You%20need%20to%20use%20the,to%20map%20the%20Conversation%20Topic.

     

    attached image

    thread.png
  • trice602 Profile Picture
    15,922 Super User 2026 Season 1 on at

    Understood.  Add 1 and then 2. before we try to capture the individual values.  These two right after your trigger.

     

    trice602_0-1692738907930.png

     

     

  • vandam2 Profile Picture
    on at

    So strange because i still don't see the option to pull the subject, shouldn't i be able to just initiate a variable for 'Subject' ?

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard