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 / Power Automate / Custom connector retur...
Power Automate
Unanswered

Custom connector returns application/atom+xml instead of application/json - how to work around it?

(0) ShareShare
ReportReport
Posted on by 161

Hi,

I have built my first custom connector to fetch O365 audit log data via the https://outlook.office365.com/psws/service.svc/UnifiedAuditLog endpoit. By testing the connector in the "Test Operation" menu of the connector creation wizard I get back the content-type "content-type": "application/json in the header.

{
 "x-psws-exception": "System.Management.Automation.PipelineStoppedException,The pipeline has been stopped.",
 "date": "Mon, 09 Sep 2019 10:17:33 GMT",
 "content-encoding": "gzip",
 "x-content-type-options": "nosniff",
 "x-aspnet-version": "4.0.30319",
 "x-powered-by": "ASP.NET",
 "x-rum-validated": "1",
 "x-mailboxguid": "ae8db821-75c9-41c2-9e8f-71c1e975cb13",
 "request-id": "c0b1a38c-ebe7-41c3-af65-b5d9f0970b22",
 "content-length": "44976",
 "pragma": "no-cache",
 "dataserviceversion": "3.0;",
 "x-calculatedbetarget": "am5pr0802mb2402.eurprd08.prod.outlook.com",
 "x-psws-errorcode": "840001",
 "vary": "Accept-Encoding",
 "content-type": "application/json;odata=minimalmetadata;streaming=true;charset=utf-8",
 "cache-control": "no-cache, no-store",
 "x-diaginfo": "AM5PR0802MB2402",
 "x-usertype": "Business",
 "x-beserver": "AM5PR0802MB2402",
 "x-feserver": "AM6PR0502CA0044",
 "expires": "-1"
}

 

However, when I build a flow with the exact test values the header is of content-type"

content-type":"application/atom+xml


This content-type won't let me work with the 'Parse JSON' action.

Here's the Flow, quite simple:

 

1.png

 

And here's the 'Import from sample' bit during the connector creation:

 

2.png

 

I also tried specifying what to accept in the header, i.e. application/json but that doesn't change anything.

 

Any idea what I can do here? Thanks!

Categories:
I have the same question (0)
  • Verified answer
    colonel_claypoo Profile Picture
    161 on at

    Found the answer myself.

     

    In the connector creation wizward I used the wrong format for the header.

    It has to be:

     

    Content-Type : application/json

    Accept: application/json

     

    And then configure those two in the definition step as 'required' with the visibility parameter set to 'internal'.

     

    Hope that helps.

  • Community Power Platform Member Profile Picture
    on at

    Hi @colonel_claypoo ,

     

    I have the exact same problem. However, after changing the headers I even got errors when testing the custom connector itself. Where did you define the headers?

     

    hope you can be of help.
    Cheers, 
    Rik

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard