web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to update an excel...
Power Automate
Unanswered

How to update an excel row if a condition is met and add an excel row if a condition is not met

(3) ShareShare
ReportReport
Posted on by 13
Hello all,
 
I am trying to build a flow that updates an Excel row when the "quote number" field in an Excel spreadsheet on SharePoint is blank, and adds a row when it is not blank.
 
If I set the "Condition" as shown below, the row will be updated or added regardless of whether the quote number field is blank or not.
 
In the case of condition A: empty(triggerOutputs()?['Quote Request Number']
The row will be updated whether the quote number field is blank or not.
 
In the case of condition B: empty(outputs('Substring quote request number')?['body'])
The row will be added whether the quote number field is blank or not.
 
Could you please tell me if there is a solution?
Thank you in advance.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

condition A: empty(triggerOutputs()?['Quote Request Number']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The row will be updated whether the quote number field is blank or not.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
condition B: empty(outputs('Substring quote request number')?['body'])
 
 
 
The row will be added whether the quote number field is blank or not.
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,215 Super User 2025 Season 2 on at
    Hi,
     
    I am not sure I know what the question is or the problem spot to help.
  • Verified answer
    Patricia11 Profile Picture
    13 on at
    Hi,
    Thank you for your reply. I apologize if my explanation was difficult to understand.
     
    The problem was that even though I set conditions, the rows in Excel were updated or new rows were added regardless of the conditions.
     
    I solved the above issue myself.
     
    I added "Get Rows" above "Conditions" and re-set the "Conditions", and the following flow was successful.
    -If the quote number is blank, update the row in Excel.
    -If the quote number is not blank, add a new row to Excel.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard