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 / Send an email every da...
Power Automate
Unanswered

Send an email every day with any product line items in a spreadsheet that are less than 10% of initial inventory. receiving error message for the ForEach

(0) ShareShare
ReportReport
Posted on by 8

Have attempted to build an automation to send an email once a day for any items that are low in inventory. Below is outline of what has been done so far receiving error message for the ForEach. action. have attempted to use the apply to each as well. the data resides in an Excel spreadsheet in Sharepoint.

 

MG_User_0-1718917106953.png

 

Categories:
  • Anil_g Profile Picture
    668 Moderator on at

    @MG_User 

     

    May I know what is used in for each..as per error the value you provided to loop is wrong

     

    ideally you just need to select the output of list of rows in table

     

    cheers

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

    Hi @MG_User ,

     

    Could you please show the expression in Condition?

     

    If you're having trouble checking current inventory are less than 10% of initial inventory, please provide outputs from the current inventory and original inventory in List rows in a table and I'll provide you with a solution.

     

    I recommend you try Filter array and Create HTML table. 

     

    Then insert the HTML table in email body. The HTML table contains items that are less than 10% of initial inventory.

     

    Your current flow will send email for each item that is less than 10% of initial inventory.

    vmengmlimsft_0-1718934129905.png

     

     

     

    Best regards,

    Rimmon

     

  • MG_User Profile Picture
    8 on at

    MG_User_2-1718974340580.png

     

     

    MG_User_1-1718974294445.png

    Thanks for the comments and any help.

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

    Hi @MG_User ,

     

    How is the situation now? Does my method work?

     

    Thanks for screenshots.

    I also need to check outputs of "Avail.." and "Initial Inventory" of List Rows in a table. The data type of them in outputs determines how to set the Condition.

     

    ——————————————————————————————————————————————————

    If my answer helps you solve the problem, please accept it as a solution.

    If you have another problem, please post it in new post.😀

     

    Best regards,

    Rimmon

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 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard