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

Custom Connector: Trigger not working

Hi,

 

I created a custom connector but its generating a web-hook URL which is not working. I tested it through postman but its throwing error below

{
    "error": {
        "code": "DirectApiAuthorizationRequired",
        "message": "The request must be authenticated only by Shared Access scheme."
    }
}

 

URL generated

https://prod-17.southeastasia.logic.azure.com/workflows/d61ab61b88e14ba6a7918cd705021425/triggers/Inbound_SMS/versions/08586082302980018035/run?api-version=2016-06-01&sp=%2Ftriggers%2FInbound_SMS%2Fversions%2F08586082302980018035%2Frun%2C%2Ftriggers%2FInb

 

SWAGGER

{
  "swagger": "2.0",
  "info": {
    "title": "MYAPI",
    "description": "",
    "version": "1.0"
  },
  "host": "rest.myapi.com",
  "basePath": "/v3",
  "schemes": [
    "https"
  ],
  "consumes": [],
  "produces": [],
  "paths": {
    "/automations/sms/inbound": {
      "x-ms-notification-content": {
        "description": "SMSWebhookResponse"
      },
      "post": {
        "responses": {},
        "summary": "Inbound SMS",
        "description": "Inbound SMS",
        "operationId": "inbound_sms",
        "x-ms-visibility": "important",
        "x-ms-trigger": "single",
        "parameters": [
          {
            "name": "body",
            "in": "body",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "message_search_type": {
                  "type": "integer",
                  "format": "int32",
                  "description": "message_search_type",
                  "title": "",
                  "x-ms-visibility": "internal",
                  "default": 0
                },
                "message_search_term": {
                  "type": "string",
                  "description": "message_search_term",
                  "title": "",
                  "default": "*"
                },
                "action_address": {
                  "type": "string",
                  "description": "action_address",
                  "title": "",
                  "x-ms-visibility": "internal",
                  "x-ms-notification-url": true
                },
                "dedicated_number": {
                  "type": "string",
                  "description": "dedicated_number",
                  "title": "",
                  "x-ms-visibility": "internal",
                  "default": "*"
                },
                "rule_name": {
                  "type": "string",
                  "description": "rule_name",
                  "title": "",
                  "x-ms-visibility": "important"
                },
                "action": {
                  "type": "string",
                  "description": "action",
                  "title": "",
                  "default": "URL",
                  "x-ms-visibility": "internal"
                },
                "enabled": {
                  "type": "integer",
                  "format": "int32",
                  "description": "enabled",
                  "title": "",
                  "x-ms-visibility": "internal",
                  "default": 1
                }
              },
              "required": [
                "dedicated_number",
                "enabled",
                "rule_name",
                "message_search_type",
                "message_search_term",
                "action",
                "action_address"
              ]
            }
          }
        ]
      }
    }
  },
  "definitions": {},
  "parameters": {},
  "responses": {},
  "securityDefinitions": {
    "basic_auth": {
      "type": "basic"
    }
  },
  "security": [
    {
      "basic_auth": []
    }
  ],
  "tags": []
}

 

 

I will really appreciate if someone can help me to resolve the issue

 

Thanks

Rizwan Mahfooz

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,163)