Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Check for Missing Field When a HTTP Request is Received

(0) ShareShare
ReportReport
Posted on by 221

Hope everyone is doing good.

 

I have a trigger:

JeffGimo_0-1631044690796.png

The request body json schema is:

 

{
 "items": {
 "additionalProperties": false,
 "properties": {
 "key": {
 "type": "string"
 },
 "value": {
 "type": "string"
 }
 },
 "required": [
 "key",
 "value"
 ],
 "type": "object"
 },
 "type": "array", 
 "required": [
 "key",
 "value"
 ]
}

 

I am trying to output an error if a Field is missing.

 

Sample: When my request is like this below where there is no "value".

 

[
 { "key": "Request_ID" }
]

 

I need to output an error like "Missing Field: value".

 

Is this possible??

 

Here's a sample run where there is missing field.

It is still successful even though there is a missing field which is value.

JeffGimo_0-1631045070166.png

 

  • Verified answer
    JeffGimo Profile Picture
    221 on at
    Re: Check for Missing Field When a HTTP Request is Received

    Found the solution under settings.>Schema Validation.

  • Expiscornovus Profile Picture
    32,140 Most Valuable Professional on at
    Re: Check for Missing Field When a HTTP Request is Received

    Hi @JeffGimo,

     

    I don't know if this is exactly what you are looking for but you could configure a run after for the has failed status on one of the next actions and output the actually error code.

     

    Below is an example of that.

     

    1. Retrieve the value field. And add another compose action after that with configure run after condition for has failed.

     

    configurerunafterhasfailed.png

     

    2. Use the following expression in that compose action

     

    actions('Compose')?['Error']['code']

     

    runafterfailed_errorcode.png

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1