Skip to main content

Notifications

Power Automate - General Discussion
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

 

 

  • vandam2 Profile Picture
    vandam2 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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' ?

  • trice602 Profile Picture
    trice602 11,848 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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
    vandam2 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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

  • trice602 Profile Picture
    trice602 11,848 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

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

     

  • vandam2 Profile Picture
    vandam2 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

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

  • trice602 Profile Picture
    trice602 11,848 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    Hi @vandam2 ,

     

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

     

     

  • vandam2 Profile Picture
    vandam2 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

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

    vandam2_0-1692737176172.png

     

     

  • trice602 Profile Picture
    trice602 11,848 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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
    vandam2 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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
    trice602 11,848 on at
    Re: Getting subject from email using 'Save attachments to a SharePoint when an email arrives to a Groups mailbox'

    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

     

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,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard