Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
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?

 

  • gmarokov Profile Picture
    5 on at
    Re: Webhook trigger with dynamic schema properties

    Hi @murshed, any news on that? 

  • murshed Profile Picture
    Microsoft Employee on at
    Re: Webhook trigger with dynamic schema properties

    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 👍.

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

Featured topics