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

API returns text/json

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am trying to implement a third party API as a custom connector. 

I can not edit anything about the API, I can only work with it.

 

The problem is that in a flow I always get the error "The API operation 'ProjectGetAllMin' requires the property 'body' to be of type 'Object' but is of type 'String'." 

The response is definitely a JSON object, but the API returns the Conte-Type text/json in the header. I think that may be the problem? 

 

When I test the actions in the custom connector editor, it works fine.

 

As I said, it is a third-party API and I can not change what it is returning. Can I maybe force the flow to interpret the data as JSON anyway?

 

Thanks,

Bjarne

 

Edit:

Just to make sure, here is a example response:

 

{
 "response": {
 "status": 200,
 "version": "4.0",
 "message": "ok",
 "note": null,
 "note_type": null
 },
 "data": [
 {
 "name": "123456 - Test",
 "notes": "A note",
 "is_archived": false,
 "delivery_date": null,
 "estimated_time": 0.0,
 "accumulated_time": 3600,
 "worked_hours": 1.0,
 "color": "5",
 "is_public": null,
 "default_view": null,
 "customer": {
 "name": "Customer",
 "id": 412340
 },
 "service": {
 "name": "Customers",
 "id": 147624
 },
 "created_at": "2021-09-10 06:06:06",
 "updated_at": "2021-09-10 08:37:41",
 "following": false,
 "active_tasks": 1,
 "archived_tasks": 0,
 "is_template": false,
 "billing_data": {
 "hourly_rate": null,
 "fixed_rate": null
 },
 "billing": {
 "hourly_rate": null,
 "fixed_rate": null
 },
 "id": 1442292
 }
		]
}

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @BKohnke 

    can you share screen where exactly your flow is failing?

     

  • BKohnke Profile Picture
    on at

    Sure.

    I played around with the action definition in OpenAPI view, but I couldn't get it to work...

     

    When I use an action that creates something, for example, create a new project, I get the same error, but I can see in the App that the creation worked. 

     

    BKohnke_0-1631433935500.png

     

  • ThomasDK Profile Picture
    265 on at

    Hej Bjarne,

     

    Did you ever get this to work? I have the exact opporsite problem and I'm not getting much (as in none) response either.

    My post: Re: The API operation 'CreateTeam' requires the pr... - Power Platform Community (microsoft.com)

     

    /Thomas

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard