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 / Create document from e...
Power Automate
Answered

Create document from email - add metadata

(0) ShareShare
ReportReport
Posted on by

Is there another way (apart from filename or subject name) to add an email (with attachment) to a doc library with specific metadata?

 

Situation:

1. I have enabled incoming email support for a document library

2. An email (with document) is sent to this document library - this email is sent by another application

3. When a document is created, a flow is triggered

 

This flow needs to add (move) the document to another document library with additional metadata properties. As I understood, these metadata properties could be added to the filename or subject of the email, allowing SharePoint to extract these properties. For example: filename_property1_property2.docx

 

However, there are a lot of properties and some of these properties may include a lot of info, therefore creating an issue with the path length.

 

Is there a way to let this flow add the document with metadata properties, for example by:

1. Filling in the metadata properties in the body text

2. Adding an additional attachment to the email containing the properties? (excel file? xml file?)

Any ideas would be greatly appreciated

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

    Hi @Boudewijn,

     

    You could store these metadata properties into a CSV file, then extract the content of CSV to parse, get these metadata properties.

    After storing the file to another document library, use Update file properties action to update the properties by using these data get from CSV.

    About parse the content of CSV file, you could refer to this post:

    https://powerusers.microsoft.com/t5/Building-Flows/Split-method-parse-csv/m-p/514345#M65405

     

    If possible, you could also store these data as JSON format into a txt file, using Parse JSON action to process it:

    https://powerusers.microsoft.com/t5/Building-Flows/JSON-to-Excel-or-CSV-to-Excel/m-p/443890

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard