cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bruleto
Frequent Visitor

Custom Connector with XML Post

I am trying to integrate PowerApps with another system via a Custom Connector. The system only allows POST in XML, not JSON. I've been struggling to get this to work in PowerApps. My tests via Postman work without issue as do the test from the PowerApp Custom Connector screen. 

 

Does PowerApps actually allow you to send XML POST or only JSON using a Custom Connector?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @bruleto ,

Do you want to send XML POST through the Custom Connector, and return a proper XML Response?

 

Regarding the needs that you mentioned, I afraid that there is no way to achieve your needs in Power Apps currently.

 

Currently, for Power Apps and Power Automate, you must support stable HTTP REST APIs for your service. For RESTFul API, it usually use JSON as Transfer format and Response Format.

 

Within Power Apps custom connector, it only supports JSON schema as Request Body or Response Body for operations. If you would like this feature to be added in Power Apps, please submit an idea to Power Apps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-xida-msft
Community Support
Community Support

Hi @bruleto ,

Do you want to send XML POST through the Custom Connector, and return a proper XML Response?

 

Regarding the needs that you mentioned, I afraid that there is no way to achieve your needs in Power Apps currently.

 

Currently, for Power Apps and Power Automate, you must support stable HTTP REST APIs for your service. For RESTFul API, it usually use JSON as Transfer format and Response Format.

 

Within Power Apps custom connector, it only supports JSON schema as Request Body or Response Body for operations. If you would like this feature to be added in Power Apps, please submit an idea to Power Apps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft Thank you for the reply. I had a feeling that it would not be possible at this time. I very much appreciate the response.

HEATFreight
Post Prodigy
Post Prodigy

@bruleto @v-xida-msft I am having the same problem, which I discuss at length here and here.

How can I at least get the custom connector to always default to its own body parameters? This seems to only work directly within the custom connector "Test operation" feature and nowhere else.

It makes no sense. This shouldn't have to be a feature request, it's literally a bug or just something they forgot to do. It's like the devs got halfway done with building the custom connector feature, and then they just stopped and forgot to finish all the rest! Like what is the point of a custom API connector if it won't faithfully pass in data to the API? This is ridiculous.

HEATFreight
Post Prodigy
Post Prodigy

Is this limitation still true? About a year ago I was having a problem that was actually unrelated to the XML format, but I was not knowledgeable enough to understand at the time. Turns out that my issues at the time were a result of a misconfiguration in the 3rd-party API's OAuth2 implementation.

But now I have a legit XML problem!

How can I call a SOAP Custom Connector directly within a Canvas App???

I can't figure out what I'm doing wrong here. No matter how I change the syntax, I get the same error: "The server returned an HTTP error with code 500."

Click here to see my post.

 

The Custom Connector works fine when I input the body text directly within the >Test tab of the Custom Connector editor as well as within a Flow action. It seems to me that something is off with either the syntax of the body or the formatting of the response. Is Power Apps not able to receive an XML response?

@v-xida-msft Is there a way to have the Custom Connector convert the XML response of a 3rd-party API to JSON for consumption by a Power Apps Canvas App? My hope is that Triggers/References/Policies (or the >Code tab) can be used to program a JSON response instead of XML. Seems as if Custom Connectors are severely limited if they can't be made to work with SOAP APIs (which use XML response format) for Power Apps consumption. The SOAP API Custom Connector does work with Power Automate flow actions, but this adds an unnecessary hop! 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,242)