Hi, I have developed a ChatBot using Copilot Studio and while trying to call a ODATA service using 'Send HTTP Request' in advanced options with Header and Body, I am getting 400 error. I provided all the required values in Header and Body and this service is working fine from Postman.
Did anyone make HTTP call for the service registered in Microsoft APIM from Microsoft Copilot Studio?
Error Message: HTTP request failed with status code 400 Bad Request. Error Code: HttpRequestFailure Conversation Id: 68a38f36-1c03-4964-83f3-aa0c388c1913.
I am looking for some pointers to resolve this error, appreciate if anyone share their thoughts for this.
Hi I am facing this issue after sending api post request here in the response body of api there is only this response
Hi @rkatakam, in my context i only maintained the authentication key in the header and not in the body. You may want to also check the string that is being sent to http request in Copilot Studio and cross check against Postman. This helped me get the call correctly formatted for Copilot Studio. All ze best!!
Hi @fhlim, Thanks for your response. Yes, my APIM need authentication, and I have maintained them in Header and Body. So, do we need to maintain all of them only in Header? no need to maintain in Body?
hi, does your APIM require authentication? if so, you need to include the api key (or whatever authentication mechanism) in the header. Mine worked after that.
Thanks for your reply. Yes, l could be able to call an ODATA service available from internet but when I tried to call an ODATA service of SAP from Copilot Studio ChatBot I am getting the above errors. I am not using Power Automate desktop/cloud flows as my requirement is to directly make a HTTP call from ChatBot itself.
Hi @rkatakam,
Just to double check. I assume this OData service is available from the internet and not just from your local network?
Btw, are you calling this service from a call an action cloud flow? If that is not the case have tried that approach as a workaround?
WarrenBelz
146,513
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,681
Most Valuable Professional