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:

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

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!