cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wschnell
Frequent Visitor

custom connector trigger import

Writing a Custom Connector ...

When I 'update from an OpenAPI file' that contains a subscribe for a trigger, the field that is the x-ms-notification-url has to have an attribute required: true.

When running "Update connector" the same field must have required as an array of field names like so: required: [ "<field_name>" ]

 

The only solution I have is to have the Array in the OpenAPI file and upon import edit the Body in Definition, there edit the <field name> and set required to true there.

 

 

  	"/trigger/subscribeRecur": {
		"x-ms-notification-content": {
			"description": "expected from Trigger",
			"schema": {
			  "type": "object",
			  "properties": {
				"sFileId": {
				  "type": "string",
				  "description": "a file id"
				}
			  }
			}
		},
		"post": {
			"description": "subscribe to recur",
			"summary": "recur triggered",
			"operationId": "subscribeRecur",
			"x-ms-trigger": "single",
			"consumes": [
				"application/json"
			],
			"produces": [
				"application/json"
			],
			"parameters": [
				{
					"name": "body",
					"in": "body",
					"schema": {
						"type": "object",
						"properties": {
							"sCallUrl": {
								"type": "string",
								"title": "sCallUrl",
								"required": [ "sCallUrl" ],
								"description": "the callback address",
								"x-ms-notification-url": true,
								"x-ms-visibility": "internal"
							}
						}
					}
				}
			],
			"responses": {
				"201": {
					"description": "Created",
					"schema": {
						"type": "object",
						"properties": {
							"Location": {
								"type": "string"
							}
						}
					}
				}
			}
		}
	},

 

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (1,493)