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
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]
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?
Solved! Go to Solution.
HI @yoshihirok,
I am glad that you have solved the problem.
And thanks for sharing.
Best regards,
Mabel Mao
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.
Thank you.
HI @yoshihirok,
I am glad that you have solved the problem.
And thanks for sharing.
Best regards,
Mabel Mao
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
12 | |
9 | |
7 | |
7 | |
7 |
User | Count |
---|---|
20 | |
18 | |
17 | |
11 | |
7 |