web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Take csv attached in a...
Power Automate
Unanswered

Take csv attached in an email and pass the data to a sharepoint list or to excel in sharepoint

(0) ShareShare
ReportReport
Posted on by 6
Hello, I need to create a flow so that when I receive a specific email with a csv file, I can pass the data to a sharepoint list or, failing that, add new rows to a sharepoint excel, how do I do it? I am new to this topic, I would greatly appreciate your collaboration.
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    One doubt - so details/row details which were failed to get added in SharePoint list would be need to add to excel stored in excel - right ?
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • ML-30122104-0 Profile Picture
    6 on at
    Hi Nived,
     
    Not necessarily, it would help me if it worked in either case, but preferably if the CSV data were inserted directly into Excel, thanks!!
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    If you want to add all rows of csv to excel table- refer below flow
     
    For demo purposes- i have used the csv file 
     
    Also an excel table is created with simmilar column for storing data
     
     
    Follow the steps as shown below
     
    1. use the trigger when email arrives
     
    2. Use filter array to filter out the attachments which are of csv type.
     
     
     
    3. use apply to each loop to loop through each filtered array output.
     
    Next steps will be used inside the apply to each loop
     
    3.1- use get attachment to get attachment content
     
    3.2 use compose action to convert the base64 attachment content to string as shown below
     
    3.3- Use apply to each loop again to loop through each row in csv file after split operation.
     
    following steps would be under above apply to each loop
    3.3.1- use add row to table to add the row details to table as shown below
     
    Note - after the split operation - that removes header and each element would be of format ['1,2,3','4,5,6'] 
    Now for '1,2,3' - 1 should be in A column, 2 should be in B column and 3 should be in C column. so we should split it using , as delimiter and take index values accordingly as shown above.
     
     
    After running the flow - it should be look like this
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • ML-30122104-0 Profile Picture
    6 on at
    Hi Nived, thank u so much for the answer, I tested the process and function exactly as I needed, thank you so much for your support.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard