Comma delimmited query params at Azure Logic App

Mohamed Hussein 710 Reputation points
2024-12-13T18:14:12.8566667+00:00

Good Day,

My question is about query delimitted params sent to Bing Search API at Azure Logic App consumption plan.

The request operating on postman, but does not on Azure Logic App

I'm getting the following error

Appreciate your supportImage 11

Image 12

{
    "uri": "https://api.bing.microsoft.com/v7.0/search/?",
    "method": "GET",
    "queries": {
        "cc": "SA",
        "responseFilter": "Entities,News,Places,Webpages",
        "q": "CNN article Our AI future: promise and peril",
        "count": "3"
    },
    "headers": {
        "Ocp-Apim-Subscription-Key": "",
        "Accept": "application/json",
        "Pragma": "no-cache"
    }
}

{
  "_type": "ErrorResponse",
  "errors": [
    {
      "_type": "Error",
      "code": "InsufficientAuthorization",
      "message": "Insufficient authorization to access requested resource.",
      "moreDetails": "Only these values are allowed: Webpages,Images,Videos,News,SpellSuggestions,entities,places,RelatedSearches,Computation,TimeZone,Translations",
      "parameter": "responseFilter",
      "value": "Entities%2cNews%2cPlaces%2cWebpages"
    }
  ]
}
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2024-12-13T20:55:35.2266667+00:00

    Hi @Mohamed Hussein

    This is a limitation of the Bing Search API. The HTTP logic connector by default encodes query parameters, so commas are encoded as %2c. I was, however, able to get around this by putting the responseFilter query param as part of the URI itself.

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.