title: Call nested Azure logic app with get and body parameter
body: <p>We are building nested logic apps where a logic app will call another logic app to aggregate some data.<br>
  Currently we have Logic Apps <code>A</code>, <code>B</code> and <code>C</code> all being setup with a GET request.<br>
  Logic App <code>ABC</code> that aggreagtes all the data will be exposed by the API over a GET request and internally call <code>A</code> to <code>C</code> to gather all the data.<br>
  When we use Postman however we get an error message:</p>
  <pre><code>{
    &quot;error&quot;: {
      &quot;code&quot;: &quot;TriggerRequestMethodNotValid&quot;,
      &quot;message&quot;: &quot;The HTTP method for this request is not valid: expected 'Get' and actual 'POST'.&quot;
    }
  }
  </code></pre>
  <p>Which would imply that <code>ABC</code> calls <code>A</code> with a POST instead of a GET.<br>
  We've got the hunch, that this is due to us calling the Logic App with a <code>body</code> element.<br>
  We temporarly fixed the problem by setting all logic app calls to <code>POST</code>, but we would like to avoid this, since we might expose <code>A</code> as system layer API and would like to keep it as a GET.<br>
  The code for <code>A</code>:</p>
  <pre><code>{
      &quot;definition&quot;: {
          &quot;$schema&quot;: &quot;https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#&quot;,
          &quot;actions&quot;: {
              &quot;Filter_is_null&quot;: {
                  &quot;actions&quot;: {
                      &quot;Get_locations&quot;: {
                          &quot;inputs&quot;: {
                              &quot;host&quot;: {
                                  &quot;connection&quot;: {
                                      &quot;name&quot;: &quot;@parameters('$connections')['salesforce']['connectionId']&quot;
                                  }
                              },
                              &quot;method&quot;: &quot;get&quot;,
                              &quot;path&quot;: &quot;/datasets/default/tables/@{encodeURIComponent(encodeURIComponent('Location__c'))}/items&quot;
                          },
                          &quot;runAfter&quot;: {},
                          &quot;type&quot;: &quot;ApiConnection&quot;
                      },
                      &quot;Response&quot;: {
                          &quot;inputs&quot;: {
                              &quot;body&quot;: &quot;@body('Get_locations')?['value']&quot;,
                              &quot;statusCode&quot;: 200
                          },
                          &quot;kind&quot;: &quot;Http&quot;,
                          &quot;runAfter&quot;: {
                              &quot;Get_locations&quot;: [
                                  &quot;Succeeded&quot;
                              ]
                          },
                          &quot;type&quot;: &quot;Response&quot;
                      }
                  },
                  &quot;else&quot;: {
                      &quot;actions&quot;: {
                          &quot;Get_locations_filtered&quot;: {
                              &quot;inputs&quot;: {
                                  &quot;host&quot;: {
                                      &quot;connection&quot;: {
                                          &quot;name&quot;: &quot;@parameters('$connections')['salesforce']['connectionId']&quot;
                                      }
                                  },
                                  &quot;method&quot;: &quot;get&quot;,
                                  &quot;path&quot;: &quot;/datasets/default/tables/@{encodeURIComponent(encodeURIComponent('Location__c'))}/items&quot;,
                                  &quot;queries&quot;: {
                                      &quot;$filter&quot;: &quot;@triggerBody()?['filter']&quot;
                                  }
                              },
                              &quot;runAfter&quot;: {},
                              &quot;type&quot;: &quot;ApiConnection&quot;
                          },
                          &quot;Response_error&quot;: {
                              &quot;inputs&quot;: {
                                  &quot;body&quot;: {
                                      &quot;component&quot;: &quot;sf-locations-get&quot;,
                                      &quot;message&quot;: &quot;bad request - validate filter&quot;
                                  },
                                  &quot;statusCode&quot;: 400
                              },
                              &quot;kind&quot;: &quot;Http&quot;,
                              &quot;runAfter&quot;: {
                                  &quot;Get_locations_filtered&quot;: [
                                      &quot;Failed&quot;
                                  ]
                              },
                              &quot;type&quot;: &quot;Response&quot;
                          },
                          &quot;Response_filtered&quot;: {
                              &quot;inputs&quot;: {
                                  &quot;body&quot;: &quot;@body('Get_locations_filtered')?['value']&quot;,
                                  &quot;statusCode&quot;: 200
                              },
                              &quot;runAfter&quot;: {
                                  &quot;Get_locations_filtered&quot;: [
                                      &quot;Succeeded&quot;
                                  ]
                              },
                              &quot;type&quot;: &quot;Response&quot;
                          }
                      }
                  },
                  &quot;expression&quot;: {
                      &quot;and&quot;: [
                          {
                              &quot;equals&quot;: [
                                  &quot;@triggerBody()?['filter']&quot;,
                                  &quot;@null&quot;
                              ]
                          }
                      ]
                  },
                  &quot;runAfter&quot;: {},
                  &quot;type&quot;: &quot;If&quot;
              }
          },
          &quot;contentVersion&quot;: &quot;1.0.0.0&quot;,
          &quot;outputs&quot;: {},
          &quot;parameters&quot;: {
              &quot;$connections&quot;: {
                  &quot;defaultValue&quot;: {},
                  &quot;type&quot;: &quot;Object&quot;
              }
          },
          &quot;triggers&quot;: {
              &quot;request&quot;: {
                  &quot;inputs&quot;: {
                      &quot;method&quot;: &quot;GET&quot;,
                      &quot;schema&quot;: {
                          &quot;properties&quot;: {
                              &quot;filter&quot;: {
                                  &quot;type&quot;: &quot;string&quot;
                              }
                          },
                          &quot;type&quot;: &quot;object&quot;
                      }
                  },
                  &quot;kind&quot;: &quot;Http&quot;,
                  &quot;type&quot;: &quot;Request&quot;
              }
          }
      },
      &quot;parameters&quot;: {
          &quot;$connections&quot;: {
          }
      }
  }
  </code></pre>
  <p>Image of <code>A</code> for reference:
  <a href="https://i.stack.imgur.com/qw2sj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qw2sj.png" alt="API 'A'" /></a></p>
  <p>Image of <code>ABC</code> for reference:
  <a href="https://i.stack.imgur.com/X9u7f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X9u7f.png" alt="API 'ABC'" /></a></p>
  <p>Is there a possibility to call nested logic apps, containing a <code>body</code> using GET?</p>