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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Salesforce "Send an HT...
Copilot Studio
Suggested Answer

Salesforce "Send an HTTP Request" connector tool - body accepts only File type

(0) ShareShare
ReportReport
Posted on by 33
Hello, 

My agent (using Reasoning model) is able to successfully dynamically fill the content needed (URI and Method) to make REST API requests using the Salesforce "Send an HTTP Request" connector tool. This is superior over an agent flow and tool node as it enables the agent to use the tool more than once if needed, to make multiple requests for a single message.
I have it set up in the instructions to collect data from the Salesforce knowledge connector to aggregate all the needed details. (it seems to have more success getting details en masse with the knowledge base than with tool calls.) Then, for changes, I have it switch to the HTTP tool. 
E.g., "What's going on with case 0022139?" makes multiple requests to gather multiple fields, taking into account multiple different items returned by different queries; including separately re-querying the OwnerId field since the human-readable name does not return with a regular Case details request. So, the final output is detailed and very well done.
 
TL;DR: it's great! 

But... here's the issue. For everything other that HTTP GET requests, a request body is needed. The Salesforce tool does not allow the value type to be anything other than "File." In practice, if the Body field is present in the connector configuration, that presents as the agent prompting the user to upload a file for the body in the chat in order to be able to continue. If the Body field is omitted, only GET requests can be made, and other methods will fail. 

The connector seems to follow the format of a custom REST API tool, as seen here: https://learn.microsoft.com/en-us/microsoft-copilot-studio/agent-extend-action-rest-api?source=recommendations
Notably, changing the file type is supported. 
 
The actual basis of the connector, on Salesforce's end, specifies JSON or XML body content is supported. Additionally, it specifies that, "if using a cURL request, attach a JSON or XML file to the request using the —data-binary option." See here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_rest_resources.htm

The documentation on Microsoft's end shows that the body content type needs to be binary. Seen here: https://learn.microsoft.com/en-us/connectors/salesforce/#send-an-http-request

So... it seems that this hurdle isn't a Salesforce limitation, but a "Microsoft's own connector" limitation. 

If this connector could be changed to allow body content in other formats, this would be so extremely useful for my organization, and many others as well, I'm sure! It would allow the agent to write its own body content, custom to each query, dynamically, based on content in the chat... so very useful..... 

Just in case, pre-emptive responses:

"just use the other HTTP connector(s)!" Well.. only one header field is available. That means I can't include Content-Type which is required. As well, if using an external connector, I would need to add an Authorization header, so... not enough headers! 
 
"Just use an agent flow/Power Automate flow!" But then the agent wouldn't be able to make multiple requests per message, tailored exactly to the user's request and the data that results from it. 

"tell Microsoft, not us!" Well, I want to check first that I'm not somehow completely missing something obvious that everyone here will be able to tell me and fix my issue! That's not out of the question! :) Plus, community support for a request tends to make things move a bit faster, yes? 
 
I have the same question (0)
  • Suggested answer
    Karan_Shewale_MSFT Profile Picture
    Microsoft Employee on at

    This is indeed a Microsoft connector issue, not a Salesforce one.

    The Problem:
    The Salesforce "Send an HTTP Request" connector only accepts File type for the body parameter. This forces users to upload files instead of allowing the agent to dynamically generate JSON/XML body content, breaking the multi-request capability that makes reasoning agents powerful.

    Why Standard Workarounds Don't Work:

    • Standard HTTP connector: Limited header fields (can't add both Authorization AND Content-Type)
    • Custom connectors: Face similar limitations in Copilot Studio
    • Power Automate flows: Lose dynamic multi-request capability per message

    Realistic Solutions:

    Option 1: Azure Function/API Middleware (Most Practical)
    Create an intermediate API layer:

    • Deploy an Azure Function or API App
    • It handles Salesforce authentication internally
    • Accepts simple JSON from your agent (auth already handled, so headers available for Content-Type)
    • Forwards properly formatted requests to Salesforce
    • Returns responses to agent

    Option 2: Request Microsoft Fix Their Connector
    This is really what needs to happen. The Salesforce connector should support text/json body types like Microsoft's own documentation shows for custom REST API connectors.

    Submit Feature Request:

    Reference Documentation:

    Bottom Line:
    You're not missing anything. The Azure Function approach is your best bet for now while advocating for Microsoft to update their connector.

    Thanks 

    Karan Shewale.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 696

#2
chiaraalina Profile Picture

chiaraalina 171 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 122

Last 30 days Overall leaderboard