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 / Building a flow to ass...
Power Automate
Answered

Building a flow to assign metadata to attachments based on email content

(1) ShareShare
ReportReport
Posted on by 6

Hello all, 

 

I am trying to build a flow that will take attachments off of an email and then assign metadata to the attachment based on the content of the email. I have already built the attachment part of this but I am struggling to figure out how to have the email read and assigning of metadata based on its content. 

 

For instance if I was trying to assign date, name and document type (all of which are columns in this library) based on the first line of the email received. The email would contain that information in its first line (or subject) if thats easier in a format similar to this 12/31/2020-Fund A-Schedule A. 

 

Anyone have any idea if this is something that is possible or have experience with this  ?

 

Thanks,

Tyler

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @tlkamps ,

    it's easier for sure to get the information from the email subject than from the email content. If you can guarantee that the email subject will always have the same format, e.g. date-fund-schedule (pieces separated by - character), you can use the split(...) expression on the subject to split it by that character

    split([SubjectDynamicContent], '-')

    That will give you an array with the - separated pieces, e.g.

    [
     "12/31/2020",
     "Fund A",
     "Schedule A"
    ]

     and since it's an array, you can access it by the index in the array [x] starting from [0]:

    split([SubjectDynamicContent], '-')[0] will give you "12/31/2020"
    split([SubjectDynamicContent], '-')[1] will give you "Fund A"
    split([SubjectDynamicContent], '-')[2] will give you "Schedule A"
  • tlkamps Profile Picture
    6 on at

    @tom_riha, thank you so much for the response here. This is exactly the type of logic that I was looking for. Based on that would I be able to build that into a flow that would take each of those and tag it as meta data to the attachment that came along with that same email?  

     

    Thanks,

    Tyler

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 273 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 149 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard