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 / Automatically email re...
Power Automate
Answered

Automatically email reminders from Excel with Power Automate

(0) ShareShare
ReportReport
Posted on by 15

I built a Power Automate flow using this tutorial: https://www.myonlinetraininghub.com/automatically-email-reminders-from-excel-with-power-automate 

 

It is a super helpful tutorial. Though I am running into a slight problem when trying to add a name field to the email from the excel table. I can get the HTLM table and email (as Current item) fields to work fine. But when I go to add an additional field of "Customer Name" to the body of the email, it suddenly creates an additional Apply to each inside of the apply to each undoing to workflow.

 

milkdesk_0-1682526035003.png

milkdesk_1-1682526179567.png

 

Here is the images of the Power Automate flow without the name field which what I want it to, below is a image of the flow with the name field that undoes the what the above flow is trying to do.

 

milkdesk_3-1682526715729.png

 

 

Any help would be greatly appreciated.

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    MiDer Profile Picture
    139 on at

    @milkdesk 

    Let`s get through it one by one.

    • You start with an array of Excel Rows
      (as it is an array, referencing it would results in an apply to each )
    • then select one property of this array to have distinct values on the e-mail addresses within the compose action with the union formula
      (still an array, but only unique values, need this to send only one e-mail for all my associated rows)
    • Afterwards you loop over all previously gathered unique e-mail addresses
      • as first action you filter the array of Excel rows on the current e-mail address given within the Apply to each iteration.
        Selecting the related Excel Row rows is done with the item()[ColumnName].

        In case this here would be my Excel table:
        MiDer_0-1682538481274.png

        the first apply to each step creates this HTML table

        MiDer_1-1682538528654.png

        the second step this one here

        MiDer_2-1682538549811.png

    At this point you have one array as result of the filter array action (even though potentially your Excel file contains only one row for a certain e-mail address.
    The other array is the unfiltered result of the List Rows present in a table action from the very beginning

    Regardless which one you would select, the logic always presumes multiple potential items, thus adding an apply to each.

    In case I would now want to have another property within my e-mail, the desired information is within the output of the Filter array within the Apply to each step already.
    For me it`s the column ReminderDate, for you the CustomerName.
    It might be that all filtered results show the same value for the column, but it couldn`t as well. 

    MiDer_3-1682539594104.png


    You could now do it exactly the same way as already done with the e-mail addresses.
    Select the CustomerName from the output of the Filter array

    MiDer_4-1682539830979.png


    Get unique values with union().
    If you put it in another compose first and add its result to the e-mail or if you define it directly within the body of the mail is up to you. In case you want to review the Flow at a later point in time, it could be beneficial to have it broken down in more pieces.


    Overview of the apply to each

    MiDer_5-1682540221437.png


    Results of the two runs (as I have only two unique e-mail addresses in my table

    1

    MiDer_6-1682540277822.png

    2

    MiDer_7-1682540287546.png

     

     
    I hope this helps you a bit further.

  • milkdesk Profile Picture
    15 on at

    @MiDer that works great. I appreciate your help with this. Adding an additional Select and Compose with a union expression does the trick.

     

    The next hiccup is the Compose Output into the email body is now inserting the following ["CompanyName"].

     

    Do I use a replace expression to remove both [" and "] or is there an easier step? I did some quick searches and came up with nothing helpful. 

  • Verified answer
    MiDer Profile Picture
    139 on at

    a join expression could be an easier way

    https://learn.microsoft.com/en-us/power-automate/data-operations#use-the-join-action

  • milkdesk Profile Picture
    15 on at

    @MiDer Thank you! I was able to insert both the table and customer name into the email.  

     

    milkdesk_1-1682549192966.png

    I'm super proud of this. Thanks again for your help.

     

     

     

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