web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Error 400 When Using H...
Copilot Studio
Answered

Error 400 When Using HTTP with Microsoft Entra ID (Preauthorized) Connector for POST Requests

(0) ShareShare
ReportReport
Posted on by 2
Hello community,

I'm encountering an error when attempting to use the HTTP with Microsoft Entra ID (preauthorized) connector in Copilot Studio to send a POST request.
 
The connector requires a File type value for the body parameter, but I cannot find any way to create a variable of this type in Copilot Studio.
 
To bypass this restriction, I created an action instead, this is how the input and output look like:
inputs:
  - kind: ManualTaskInput
    propertyName: method
    value: POST
 
  - kind: ManualTaskInput
    propertyName: url
    value: /api/v2/cortex/analyst/message
 
  - kind: ManualTaskInput
    propertyName: headers
    value:
      kind: ValueExpression
      literalValue:
        Accept: */*
        Content-Type: application/json
 
  - kind: ManualTaskInput
    propertyName: body
    value: |
      {
        "messages": [
          {
            "role": "user",
            "content": [
              {
                "type": "text",
                "text": "hi"
              }
            ]
          }
        ],
        "semantic_model_file": "xxx"
      }
 
outputs:
  - propertyName: Response
 
 
Despite trying several variations of the body value, I consistently receive this error:
The connector 'HTTP with Microsoft Entra ID (preauthorized)' returned an HTTP error with code 400. Error code: ConnectorRequestFailure. Conversation ID: xxx
 
The identical configuration works correctly in Power Automate
I suspect the issue might be related to either:
  • Incorrect body value formatting in Copilot Studio
  • This connector requiring a premium license in Power Automate (which might make it unavailable in Copilot Studio)
 
Any suggestions for resolving this issue? And is there a way to access more detailed error logs?

Many thanks!
Categories:
I have the same question (0)
  • Verified answer
    Artur Stepniak Profile Picture
    1,539 Super User 2025 Season 2 on at
    Hello,
     
    as you can see on the screenshot that you provided - connector actions in Copilot Studio are still in preview (you can read more about preview features here: https://copilottoday.posthaven.com/what-is-a-preview-feature-in-microsoft-products). That kind of formatting issues happen quite a lot for preview features - don't use it on production workload, only for testing. You should leverage Power Automate flow for the action that you want to perform.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.

    Best regards,

    Artur Stepniak
    Interested in GenAI? Visit my site!
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard