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 / Using flow in SharePoi...
Power Automate
Answered

Using flow in SharePoint list with stock

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am looking to use flow to send a email whenever stock hits a certain amount.

We are using PowerApps to order items within the company. It would be great that when a item hits (lets say 100) we get a e-mail there is only 100 items left.

 

I know there is a SharePoint option within flow that triggers whenever a item is added or modified. Would it be possible to use conditons that whenever a item gets orderd (so the item gets modified in the Sharepoint list, it detracts the amount orderd) Flow checks if its <100 and sends an e-mail?

 

Thanks in advance!  

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

    Hi @Anonymous,

     

    I think this could be achieve with the "ID" dynamic content from SharePoint list item action. ID increase with the number of items you add to the list.

    Capture.PNG

     

    Regards,

    Mona

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @v-monli-msft,

     

    I will try this and if it works accept as solution. Thanks for your input! 

  • Verified answer
    DouglasRomao Profile Picture
    224 Most Valuable Professional on at

    Hi @Anonymous!

     

     I created an example to show you how you can do this.

     

    1. Create a SharePoint list named 'Products', with the fields Title, Stock and MinStock (that will be our trigger of the minimum);
    2. Create a SharePoint list name 'Orders', with the fields Title, Product and Quantity;
    3. Create a Microsoft Flow with the trigger 'When a item was created' and put it on the Orders list;
    4. Add the action Get Items, and put it on the Products lists, creating a filter to get just the product that you select in the respective order (The ODATA filter will be ID eq 'The value of the Product Id selected in the order' ;
    5. Set up a variable called 'FinalValue' of float type;
    6. Add a repetition on Get Items;
    7. For each item founded (should be just one), we will compose (calculate) the value of the official stock minus the quantity ordered;
    8. Set this compose value on the FinalValue variable;
    9. Add a condition to see if the FinalValue is less or equal to MinStock of the selected product, if YES, we will send an notification alerting that the minimum stock was reach;

     

    Bellow you can see the images of the flow:

    1.PNG

    2.PNG3.PNG4.PNG

     

    In my example, I created 2 products, and created one order to buy a lot of cars (to see if the minimum stock will reach)

     

    6.PNG

     

    5.PNG

     

    The minimum was reached and a notification was send for me.

     

    7.PNG

     

    Please, check if it helps you and if there is something that I can help, please let me know.

     

    Regards!

     

    Douglas Romão

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard