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 / Help with using a Flow...
Power Automate
Unanswered

Help with using a Flow to sum excel columns & send in email

(0) ShareShare
ReportReport
Posted on by 2

Hi

 

I'm pretty new to flows, especially using expressions etc.

I think the premise of what I am trying to do is acheivable & am just hoping someone can give me some guidance on how to do the last part.

Essentially, what I'm trying to do is the following:

  • I have muliple spreadsheets that I will drop into a sharepoint drive (Trigger When a file is created in a folder Sharepoint)
  • It will have a different file name each time.
  • The information in the spreadsheet will always presented with same columns & organised as 'Table1'.
  • I then need to send an email to a user, which sums the following columns that are in the table AR, DM, BS, BU, BW, AV & AW.
  • I have used the List rows present in a table couldn't see Get Rows (might be as it's SharePoint based?).
  • I have then used Compose with an expressions sum(body('List_rows_present_in_a_table')?['value']?[AR'])
  • I need to then use the output from the sums populated in the email, if that's possible?
  • I then need to attach the document to the email, which it is succesfully doing, but it doesn't retain the original file name (whch actually is important sadly).

Below is a snip of what I've done, it's the compose bit that i'm struggling with & how to put the specific outputs into the body of the email.
If someone could give me any pearls of wisdom i'd appreciate it.

 

Craig_Mc125_0-1688586777436.png

Craig_Mc125_1-1688587066368.png

 

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

    Hi @Craig_Mc125,

    Do you want to get excel from SharePoint Library, and get summary of columns value?

    Do you want to send the file as attachment to email?

     

    I did some test according to your requirements.

     

    Following is my flow.

    vmingkzmsft_0-1688626503490.png

     

    items('Apply_to_each')['number']

     

    vmingkzmsft_1-1688626645809.png

    vmingkzmsft_2-1688626725380.png

     

    Best Regards,

    Kyrie

     

     

  • Craig_Mc125 Profile Picture
    2 on at

    Hi

     

    Thanks for the below, I really appreciate your efforts in responding - in answer your questions:

    Do you want to get excel from SharePoint Library, and get summary of columns value? I will be dropping the file into the drive as the trigger. Yes I need to total the folowing columns of the Table in the spreadsheet AR, DM, BS, BU, BW, AV & AW. All separetely if possible, as i need to break out those totals for each (per my email screenshot above).

     

    Do you want to send the file as attachment to email? Yes, I want to attach the file from the sharepoint to the email.

     

    Does that explain? I assume that might mean some changes to the above?

     

    Thanks, appreciate the help.

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @Craig_Mc125,

    I think the previous solution is effective. You just need to initialize more variable to record the sum of columns in Excel table.

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard