cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yoshihirok
Memorable Member
Memorable Member

How to run when NotFound from Get a row on Excel Online?

I want to run a action when NotFound from Get a Row on Excel Online.

How can I run?

 

Test flow overview

1. Trigger: Request - When a HTTP Request arrived

2. Action: Excel Online - Get a row

3. Action: Request - Response

 2018-08-12 (3).png

Test flow details

1. Trigger: When a HTTP Request arrived

- Request Body JSON Schema

{
    "type": "object",
    "properties": {
        "Name": {
            "type": "string"
        }
    }
}

2. Action: Get a row

  Key column: Name

  Key value: Name

3. Action: Response

  Status code: 200

  Body: Value

 

Preparing

  Excel file on OneDrive

  with a table [Name] [Value]

 2018-08-12 (5).png

Repro step

  Run this flow by PowerShell Script 

$endpoint = "<http post url>"
$payload = @{
"Name" ="X"
}
Invoke-RestMethod -Method Post -Uri $endpoint -Body (ConvertTo-Json $payload) -ContentType 'application/json'

Configure run after of Request Trigger

  check on of all checks, success, failed, skip, timeout

 

Problem:

  Wheen the row of requesting Name is NotFound on Excel file,

  After the action 'Response' is not run.

 

So, my question is how to run when NotFound from the action 'Get a row' on Excel Online? 

1 ACCEPTED SOLUTION

Accepted Solutions

HI @yoshihirok,

 

I am glad that you have solved the problem.

 

And thanks for sharing.

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
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

4 REPLIES 4
yoshihirok
Memorable Member
Memorable Member

Solved.

 

To solved, Add a paralel activities with a Respond at Succeed, and Respond at NotFound.

and the 'Configure run after' of 'Respond at NotFound' check on at failed, skipped, timeout.

 

2018-08-13 (1).png

 

Thank you.

HI @yoshihirok,

 

I am glad that you have solved the problem.

 

And thanks for sharing.

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Just Tried this method but still facing the issue when it is actually failed and the red-dotted lined action should run but it displays "row not found with this id. How do we actually configure the success and failure branches after using the "get a row from excel" action. I want to check if an email exists in the excel sheet or not. If that email is not present, I would to process it differently.

Just adding to the thread as I got stuck at this point.

You need to go to each of the tasks on the branches, and click options and select 'Configure run after'.

You can then set whether the branch runs when the prior task succeeds, fails, times out etc.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,309)