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 / How to Update the exce...
Power Automate
Answered

How to Update the excel sheet data on the basis of Power automate desktop flow result

(0) ShareShare
ReportReport
Posted on by 52

Hi , 
I need help 

I need to automate my web application using Power Automate desktop . If the flow is successful, update the status in an Excel report as "UP" for each application. If errors occur, update the status in the Excel report as "DOWN". Additionally, send an Outlook email if all applications' statuses in the Excel sheet are "UP". I have multiple web-based applications to test and update their status in the same Excel sheet. Could you please guide me on how to achieve this?
below table only health check status column is dynamic depends on flow if success status should be UP else fail status should be down

Application Name
Process
Health Check Status
ABCFilter and Sorting
Up
BCDFilter and Sorting
Up
CDF
 Filter and Sorting
Up
Dfg
 Filter and Sorting
Up
Edfg
Login, Filter
Up
Ffg
Login and logout 
Up
Ggyh
Login and logout
Up


thanks in advance 

I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @gauravsolanke ,

     

    I have created a sample flow. Please find the attached solution.

    I have created the flow mainly for Setting up the status in the excel and to send email if all Application status are UP.

    I am not actually check the application status.

    VishnuReddy1997_0-1712295759366.png

     

    VishnuReddy1997_1-1712295834441.png
    VishnuReddy1997_2-1712295876985.png

     

    Code:

     

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Input.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    SET RowValue TO 2
    SET LastError TO $'''No Error'''
    ERROR => LastError
    IF LastError <> $'''No Error''' THEN
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: $'''UP''' Column: $'''C''' Row: RowValue + 1
    Variables.IncreaseVariable Value: RowValue IncrementValue: 1
    SET LastError TO $'''No Error'''
    ELSE
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: $'''Down''' Column: $'''C''' Row: RowValue + 1
    Variables.IncreaseVariable Value: RowValue IncrementValue: 1
    SET LastError TO $'''No Error'''
    END
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    SET Count TO 0
    LOOP FOREACH CurrentItem IN ExcelData
    IF CurrentItem['Health Check Status'] = $'''UP''' THEN
    Variables.IncreaseVariable Value: Count IncrementValue: 1
    ELSE
    EXIT LOOP
    END
    END
    Excel.CloseExcel.CloseAndSave Instance: ExcelInstance
    IF ExcelData.RowsCount = Count THEN
    Outlook.Launch Instance=> OutlookInstance
    Outlook.SendEmailThroughOutlook.SendEmail Instance: OutlookInstance Account: $'''vishnureddy@gmail.com''' SendTo: $'''reddyvinay@gmail.com''' Subject: $'''Bot Summary''' Body: $'''Hi All,

    Please Find the Bot Summary for the Day.


    Regards,
    BOT''' IsBodyHtml: False IsDraft: False Attachments: $'''C:\\Users\\OneDrive \\Desktop\\Power Automate Desktop\\Practice\\Input.xlsx'''
    END


    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

     

     

  • gauravsolanke Profile Picture
    52 on at

    Thanks @VishnuReddy1997 

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
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard