Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Custom connector Query problem

I am trying to get a custom connector to work but I am gettingthe following error.


My original default query is being apended by flow. How can I fix this issue where my query does not get apended?

My query is inside of the Body.


Any help will be apreciated. 



Original Query: {"query":"query getCommunities {\n  communities(clientName: \"123\", active: true) {\n    id\n    name\n  }\n}"}

  "errors": [
      "message": "Syntax Error GraphQL request (1:2) Expected Name, found String \"query\"\n\n1: {\"query\":\"query getCommunities {\\n  communities(clientName: \\\"123\\\", active: true) {\\n    id\\n    name\\n  }\\n}\"}\n    ^\n",
   "locations": [
          "line": 1,
          "column": 2
      "extensions": {
        "code": "GRAPHQL_PARSE_FAILED"
Community Support
Community Support

Hi @MaxTampa1,


Could you please share more details about the custom connector?

Could you please share more details about the error message?


The error message that you provided told that ti has syntax Error,please share more detail so we would try to provide a proper workaround for you.


Best regards,


Hi Alice, @v-yuazh-msft


I am trying to get flow to connect to an API that is built with GraphQL.


The requests work in postman and also works in flow if I manually add the query into the RawBody.

When I set the query as default > Flow transforms the query adding additional "\" to the query.


see screenshots below

Postman.PNGrequest error.png

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,763)