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 / How do i get data from...
Power Automate
Unanswered

How do i get data from file in a email and then have it sent to a new spreadsheet

(0) ShareShare
ReportReport
Posted on by 99

i have a file that is sent to me every morning,  is it possible for the data from the attachment(minus the headers) sent to a one drive spreadsheet  - how would this flow look like

 

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    That all depends on what kind of file you are sent as an attachment. Is it a CSV, a PDF, a text file or what?

  • Dougers1 Profile Picture
    99 on at

    its a CSV file

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    For a CSV you can get the attachment. The file content will be the CSV data. You can then split() the content on a carriage return to get an array of records that you can process with an apply to each and then split each record on a comma to get the individual values. This article explains how to split the CSV content on a carriage return. Split multi-line value by new-line code in MS Flow | by Koji Saiki | Medium

     

    Then when you split it on a comma you can access each value by adding an index value to the end of the array in JSON.  Something like this variable('arrayname')[0] for the first value, variable('arrayname')[1] for the second value, etc. 

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard