Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Collect multiple amount of sharepoint objects and send them in one email

(0) ShareShare
ReportReport
Posted on by 88

Hi,

I'm trying to build a flow where I have a sharepoint list called Inventory,

There I got 3 columns - 

Item Name, Quantity, Minimum Quantity.

 

I built a flow triggered by recurrence, for every day.

I did manage to send an email but the problem is that I get an email for each and every item.

 

Talko_1-1683707707181.png

 

 

What I want is, to get 1 email once every day, that combines all the items that are equal or below the minimum quantity + the current quantity of each item and the minimum quantity of each item.

 

I'll be glad for some help,

Thanks!

 

  • Talko Profile Picture
    88 on at
    Re: Collect multiple amount of sharepoint objects and send them in one email

    It works! Thank you!

  • Verified answer
    v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Collect multiple amount of sharepoint objects and send them in one email

    Change your parameters in Condition as below for a try:

    vwenjuanmsft_0-1683799298503.png

    int(item()?['Quantity'])
    
    int(item()?['MinimumQuantity'])

     

  • Talko Profile Picture
    88 on at
    Re: Collect multiple amount of sharepoint objects and send them in one email

    Hi @v-wenjuan-msft 

    Thank you for your reply!

     

    I followed your instructions and I get this error:

    Talko_0-1683718611331.png

     

     

    This is my flow for reference:

     

    Talko_1-1683719024021.png

     

    Talko_2-1683719043414.png

     

    Talko_3-1683719063999.png

     

    What am I doing wrong?

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Collect multiple amount of sharepoint objects and send them in one email

    Hi @Talko ,

     

    Initialize an array variable above "Apply to each", and append objects to it once the item match your condition.

    Then you will get an array built by matched items. You can create an HTML table and add it to your email.

    I made a demo for your reference:

    vwenjuanmsft_0-1683712036930.png

    vwenjuanmsft_1-1683712102101.png

    vwenjuanmsft_2-1683712154359.png

     

    Here's the email I received:

    vwenjuanmsft_3-1683712195704.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow