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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard