Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Error in Power Automate Flow When Using Custom Connector -requires the property 'body' to be of type 'String' but is of type 'Object'

(0) ShareShare
ReportReport
Posted on by 11

I have created a Custom Connector that has a single "GetIssues" action.  The action tests fine within the Custom Connector creator.

 

When I try to use the action in a very simple flow I get the following error: 

 

The API 'opticsjira' returned an invalid response for workflow operation 'GetIssues' of type 'OpenApiConnection'. Error details: 'The API operation 'GetIssues' requires the property 'body' to be of type 'String' but is of type 'Object'.'

 

The swagger for the custom connector looks like this:

NOTE:  I also tried with produces set to 'application/json', but I got the same error.

 

swagger: '2.0'
info: {version: 1.0.0, title: Optics JIRA, description: 'An API to connect to Optics
    JIRA, providing the ability to a list of issues returned by a given filter.'}
host: xxx-jira.xxx.com
basePath: /
schemes: [https]
consumes: []
produces: [text/plain]
    paths:
        /rest/api/2/search:
    get:
        summary: GetIssues
        description: Get JIRA Issues with a specific JQL
        operationId: GetIssues
        parameters:
            - {name: jql, default: project=PSSTOOLS, in: query, type: string, required: true,
                description: The JQL string to search for the issues you want to get}
        responses:
            '200':
                description: '200'
                schema: {type: string}
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
basic_auth: {type: basic}
security:
    - basic_auth: []
tags: []

 

  • kreid Profile Picture
    8 on at
    Re: Error in Power Automate Flow When Using Custom Connector -requires the property 'body' to be of type 'String' but is of type 'Object'

    Hi, can you explain what you mean by your "body". I've uploaded my swagger json definition into the connector, but I don't see a "body" property. Can you show your definition an as example?

  • Verified answer
    krobertson7153 Profile Picture
    11 on at
    Re: Error in Power Automate Flow When Using Custom Connector -requires the property 'body' to be of type 'String' but is of type 'Object'

    Thanks for getting back to me.  I finally got it to work.  I think what finally worked was putting {} into my "body" in my postman definition which I uploaded to create the connector.  I think if I left it blank it treated it as "null" which is an object?  Not sure though, but it is working now.

     

    This action did not require a body but I guess it is necessary to pass an empty body anyway.

  • abm abm Profile Picture
    32,504 Most Valuable Professional on at
    Re: Error in Power Automate Flow When Using Custom Connector -requires the property 'body' to be of type 'String' but is of type 'Object'

    Hi @krobertson7153 

     

    Do you still need help in this?

     

    Thanks

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics