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 / Updating Row based on ...
Power Automate
Unanswered

Updating Row based on another excel, add new rows if not present

(0) ShareShare
ReportReport
Posted on by 9

Hi,

I'm new to power-automate, so I wanted to ask if anyone knew how I could potentially execute the following or if it is even possible. [Sorry if this is too long/detailed]

 

Scenario: I want to create an inventory stock control of our supplies. Currently, the stock is dispensed/recorded in my company's secure web application, but the web application is not able to give any indication/alert that the stock needs to be re-ordered. 

 

Desired outcome: I want to create a report in Excel (that i will later put in Power BI) that will show stock on hand, re-order level and re-order quantity (based on last 3 month sales and annual sales history), and when the stock reaches the re-order level, a notification via MS Teams message is sent.

 

My thought process to execute this:

 

>> Create a master excel workbook in one-drive that contains the following columns

Supply code*, supply name, supply size, vendor name, current stock on hand, sales from last 3 months, sales from last year, re-order level, re-order quantity 

 

*The supply code will be unique to each product

 

>> An automatic excel report will be generated twice a day from the web application that contains the columns underlined above and will be placed in one-drive. Power automate will have to compare each supply code from the automated report, and based on "supply code", update the master excel workbook "stock on hand" column

 

  • if the automated excel report has a new code that isn't in the master excel, it should create a new row and fill the information of the underlined columns above (which will be available in the automated excel report)

>> for the 3 month sales history and annual sales history, should I generate an automatic excel report from the web application, let power automate copy/paste the rows to a new master excel workbook, and add a formula that calculates the sum of each sale then create another flow to extract this information and put it in the original Master excel sheet? 

  • once this part is figured out, I would need to put a formula in the original master excel sheet to dynamically calculate the re-order level/quantity based one historical sales

 

>> Finally, once the stock on hand = re-order level, a MS Teams message should be sent to the team to review

 

Your advice is appreciated!

I have the same question (0)
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @remabsh 

    After reading below, I would check i fi can connect Power BI to your corp app db directly and then build dashboards there. This way you do not need to automate UI and have reliable solution. You could use Power Automate to trigger the Teams/email alerts too when necessary.

     

    Desired outcome: I want to create a report in Excel (that i will later put in Power BI) that will show stock on hand, re-order level and re-order quantity (based on last 3 month sales and annual sales history), and when the stock reaches the re-order level, a notification via MS Teams message is sent.

     

     

  • remabsh Profile Picture
    9 on at

    Currently, that option is not available which is why I would need to pull automated reports from the database and use the information to build a dashboard.

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @remabsh 

    I scanned your plan and it seems ok (i didn't focus on details thought).

    So my advice is - just try it out and see were it works fine , where it is failing for some reasons, where you see problems and reach out if needed 🙂

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard