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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Webhook trigger with d...
Power Automate
Unanswered

Webhook trigger with dynamic schema properties

(0) ShareShare
ReportReport
Posted on by 5

I'm trying to create a webhook trigger in Power Automate via the OpenApi spec.
The webhook url must be in the body and it's required, but I also want to have dynamic properties in the body aswell. So far I have this:

 

"/webhook/triggers/{entityType}": {
 "x-ms-notification-content": {
 "description": "When a operation is performed on a entity",
 "x-ms-summary": "When a operation is performed on a entity",
 "schema": {
 "type": "object",
 "properties": {
 "data": {
 "type": "object",
 "x-ms-dynamic-schema": {
 "operationId": "GetDynamicSchema",
 "parameters": {
 "entityType": {
 "parameter": "entityType"
 }
 }
 }
 },
 "id": {
 "type": "string"
 },
 "source": {
 "type": "string"
 },
 "type": {
 "type": "string"
 },
 "time": {
 "format": "date-time",
 "type": "string"
 },
 "dataSchema": {
 "type": "string"
 },
 "dataContentType": {
 "type": "string"
 },
 "extensionAttributes": {
 "type": "object",
 "additionalProperties": {
 "type": "object"
 }
 }
 }
 }
 },
 "post": {
 "description": "When a operation is performed on a entity",
 "x-ms-trigger": "single",
 "x-ms-visibility": "important",
 "summary": "When a operation is performed on a entity",
 "operationId": "RegisterTriggerWithEntity",
 "consumes": ["application/json"],
 "produces": ["application/json"],
 "parameters": [
 {
 "name": "entityType",
 "x-ms-summary": "Entity",
 "description": "The entity",
 "x-ms-url-encoding": "single",
 "in": "path",
 "required": true,
 "type": "string",
 "x-ms-dynamic-values": {
 "operationId": "GetEntityTypes",
 "value-path": "name",
 "value-title": "description"
 }
 },
 {
 "name": "body",
 "in": "body",
 "required": true,
 "schema": {
 "type": "object",
 "properties": {
 "webhookUrl": {
 "type": "string",
 "x-ms-notification-url": true,
 "x-ms-visibility": "internal"
 },
 "data": {
 "type": "object",
 "x-ms-dynamic-schema": {
 "operationId": "GetSchema",
 "parameters": {
 "entityType": {
 "parameter": "entityType"
 }
 }
 },
 "x-ms-dynamic-properties": {
 "operationId": "GetSchema",
 "parameters": {
 "entityType": {
 "parameterReference": "entityType"
 }
 }
 }
 }
 },
 "required": [
 "webhookUrl"
 ],
 "x-ms-visibility": "important"
 }
 }
 ],
 "responses": {
 "201": {
 "description": "Created"
 },
 "401": {
 "description": "Unauthorized"
 },
 "403": {
 "description": "Forbidden"
 }
 }
 }
 }

 

 

Which passes validation, I also have the schema properties prompted in the UI ready to be provided by the user, but on saving the flow, I get the following OpenApiOperationParameterValidationFailed:

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'body' validation failed in workflow operation 'When_a_operation_is_performed_on_a_entity': The API operation 'RegisterTriggerWithEntity' requires the property 'body/data' to be set to one of its defined enum values '[]' but is set to '{ "firstProperty": "testValue" }'.'.

What might be the problem with this flow? What is the suggested way of having a webhook trigger with dynamic schema properties?

 

Categories:
I have the same question (0)
  • murshed Profile Picture
    Microsoft Employee on at

    Let me get someone who may be able to help.

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

  • gmarokov Profile Picture
    5 on at

    Hi @murshed, any news on that? 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard