cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Majingcth
Helper I
Helper I

Check if a value exist in excel then update row value

I tried a few flows but they failed

 

I have a table with 2 columns only as below. I am getting 2 variables from an email, which are Tran_No and Status.

 

My flow I would like to check if the variable Tran_No exist in the excel table. If yes, update the new Status to existing Status column.

 

Can someone help please?

 

Tran_NoStatus
12345In Progress
12346In Progress
12347In Progress

 

My flow:

image.pngimage.pngimage.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Majingcth ,

 

Please refer to screenshot below to create the flow:

1.png2.png

 

The expression in the Condition as below:

length(body('Filter_array'))

The expression for the Transaction No column in the Update a row action as below:

item()?['Transaction No']

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
abm
Super User III
Super User III

Hi @Majingcth 

 

Please see this solution which I provided for another post.

 

https://powerusers.microsoft.com/t5/Building-Flows/Update-Row-Automatic-adding-numbers-in-the-same-r...

 

If you need any further help please let me know.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Hi @abm 

i studied your post and tried mine, but still fail.

 

I trigger by input a Tran_No = 12347 and Status = Completed, I expect to update excel for row with Tran_No = 12347 only. Can you figure out my issue?

 

My update flow:

image.pngimage.pngimage.png

v-alzhan-msft
Community Support
Community Support

Hi @Majingcth ,

 

Please refer to screenshot below to create the flow:

1.png2.png

 

The expression in the Condition as below:

length(body('Filter_array'))

The expression for the Transaction No column in the Update a row action as below:

item()?['Transaction No']

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

@v-alzhan-msft ,

 

Great, I tried it, it works. Thanks.

 

However, 1 more question.

 

When there is a Tran_No found in the list, and there status is already 'Completed', if the new Status is 'In Progress', I would like to keep it as 'Completed' and not update 'In Progress' to the row, how can this be done?

Hi @Majingcth ,

 

If your asking problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

And if you have another question, please post the new questuion in the flow forum for other users to easily identify.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,954)