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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Power automate - sending email from excel data received on the email

(0) ShareShare
ReportReport
Posted on by 36

Hi, 

 

I receive a weekly mail from on of my partners with an Excel file full of lines. this is excel has the same format.

I need to get the lines from this excel file, and send a mail to different clients with contents in the lines.

is this possible with the Power Automate?

 

Thanks 

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Power automate - sending email from excel data received on the email

    Hi @STA_ ,

     

    I did a test for you.

    vxiaochenmsft_0-1633587436399.png

    vxiaochenmsft_1-1633587453437.png

    vxiaochenmsft_3-1633587503637.png

    vxiaochenmsft_4-1633587531683.png

    first(triggerOutputs()?['body/attachments']).name
     
    dataUriToBinary(concat('data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,',first(triggerOutputs()?['body/attachments']).contentBytes))
     
    first(outputs('Get_tables')?['body/value']).id
     
    vxiaochenmsft_5-1633587574383.png
    removeProperty( json( replace(string(items('Apply_to_each')),'@odata.etag','odataetag')),'odataetag')
     
    removeProperty(outputs('Compose'),'ItemInternalId')
     
    vxiaochenmsft_6-1633587612968.png

     

    vxiaochenmsft_7-1633587626153.png

     

     Best Regards,

    Wearsky

     

     

  • STA_ Profile Picture
    36 on at
    Re: Power automate - sending email from excel data received on the email

    Hi Wearsky,

     

    Thx.

     

    I am receiving an error on the create file Step:

     

    Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '38624': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,

     

    Thx,

  • v-xiaochen-msft Profile Picture
    on at
    Re: Power automate - sending email from excel data received on the email

    Hi @STA_ ,

     

    Please provide the screenshots of your flow.

     

    Best Regards,

    Wearsky

  • STA_ Profile Picture
    36 on at
    Re: Power automate - sending email from excel data received on the email

    Hi @v-xiaochen-msft 

     

    Below:

     

    STA__0-1633594359514.png

    first(triggerOutputs()?['body/attachments']).name
     
    dataUriToBinary(concat( 'data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,',first(triggerOutputs()?['body/attachments']).contentBytes))

     

    STA__1-1633594404607.png

     

    first(outputs( 'Get_tables')?['body/value']).id

    STA__2-1633594429557.png

     

    thx,

     

  • v-xiaochen-msft Profile Picture
    on at
    Re: Power automate - sending email from excel data received on the email

    Hi @STA_ ,

     

    Please check the content in the red box.

    vxiaochenmsft_0-1633595356707.png

     

    Best Regards,

    Wearsky

     

  • STA_ Profile Picture
    36 on at
    Re: Power automate - sending email from excel data received on the email

    hi,

     

    STA__0-1633595570207.png

     

     

    thanks,

  • v-xiaochen-msft Profile Picture
    on at
    Re: Power automate - sending email from excel data received on the email

    Hi @STA_ ,

     

    The forum’s reply system automatically converted my formula...( sad )

    vxiaochenmsft_0-1633596071958.png

    vxiaochenmsft_1-1633596100839.png

     

    Please use the formula in the first picture.

     

    Best Regards,

    Wearsky

     

     

     

  • STA_ Profile Picture
    36 on at
    Re: Power automate - sending email from excel data received on the email

    Hi,

     

    Fixed that error...

     

    On the list i receive this error:

    STA__0-1633596731349.png

     

    Unable to process template language expressions in action 'List_rows_present_in_a_table' inputs at line '1' and column '38625': 'The template language expression 'first(outputs( 'Get_tables')?['body/value']).id' cannot be evaluated because property 'id' cannot be selected.

     

    Thx,

     

  • v-xiaochen-msft Profile Picture
    on at
    Re: Power automate - sending email from excel data received on the email

    Hi @STA_ ,

     

    Is there a table in your excel?

    My solution is based on the table. So did you create a table for excel ?

     

    For example:

    vxiaochenmsft_0-1633597008786.png

     

    And could you show me the run history of your flow?

     

    vxiaochenmsft_0-1633597439381.png

     

     

     

    Best Regards,

    Wearsky

     

  • STA_ Profile Picture
    36 on at
    Re: Power automate - sending email from excel data received on the email

    Hi,

     

    yes

     

    STA__0-1633598112546.png

     

     

    Somehow worked now.... thxxx

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard