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 / when a new email arriv...
Power Automate
Unanswered

when a new email arrives, save to the sharepoint list

(0) ShareShare
ReportReport
Posted on by 10

Hi guys,
I receive an e-mail regularly every day. There is an excel file in this mail. My goal is to copy the data in this excel and save it to my sharepoint list. However, I could not do this. For this, I first tried saving it to the sharepoint library. Then I tried to turn the data in that excel file into a table, but it didn't work. What do you suggest? Has anyone done it before? Is it possible ?
Please help me...

Categories:
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @mstf042 ,

    I think this link could help you:

    Using eMail Attachment Content in Power Automate Without Saving the File (flyingpolymath.com)

    Please check this test:

    My CSV Table:

    vyetonggumsft_2-1719217860405.png

    My Flow Configuation:

    vyetonggumsft_3-1719217898691.png

    vyetonggumsft_4-1719217982895.png

     

    base64ToString(body('Parse_JSON')?['contentBytes'])
    skip(split(outputs('Compose_2'),decodeUriComponent('%0A')),1)

     

    vyetonggumsft_5-1719218152214.png

     

    replace(split(items('Apply_to_each_2'),',')[0],'"','')
    replace(split(items('Apply_to_each_2'),',')[1],'"','')
    replace(split(items('Apply_to_each_2'),',')[2],'"','')

     

    The Result:

    My SharePoint List:

    vyetonggumsft_6-1719218239347.png

    Best Regards,

    Sunshine Gu

  • CU02011135-0 Profile Picture
    10 on at

    Hi, thank you for reply. I tried but it did not work for my flow. Here my flow's ss. It giving strange error. I looked up with compose function, and there are some weird expressions. Why might it be caused?

    mstf042_0-1719224099313.png

     



    2024-06-24 13_10_06-.png
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @mstf042 ,

    Please do not insert a table in Excel Worksheet, if you insert a table, you will get an error. Please re-create a csv file, like me, without inserting any tables.

    vyetonggumsft_0-1719278868254.png

     

    Best Regards,

    Sunshine Gu

  • CU02011135-0 Profile Picture
    10 on at

    Hi, 
    The e-mail I received is not in csv format. It comes directly in excel format. In this case, should I convert it to csv format first?

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 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard