Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

Custom Connector with raw body (JSON)

(0) ShareShare
ReportReport
Posted on by 194

Hi PA Community,

 

I'm building a custom connector to connect with UiPath Orchestrator. In one POST action I would like to pass a JSON in the body such as:

 

{
 "itemData": {
 "Key1": "Value1",
 "SpecificContent": {
 "SpecificKey1": "Value2",
 "SpecificNumberKey": 325
 }
 }
}

 

This works fine if I specify the object in swagger editor. But I want to keep the definition of the "SpecificContent" flexible.


I defined the body as a paremeter in the swagger:

 

 - name: body
 in: body
 schema: {type: object, title: itemData body, x-ms-visibility: advanced}
 required: false
 x-ms-visibility: advanced

 

 

This works in "Test Connector" when I switch the body to "raw body".

carl1to_1-1664534627834.png

 

But when I use the action in a cloud flow, I get this error:

carl1to_0-1664534489513.png

Error details: 'The API operation 'AddQueueItem' requires the property 'body/SpecificData' to be of type 'Object' but is of type 'String'.'

 

How do you set up the connector to allow for a flexible raw body? I would assume this is a very basic requirement that somehow I was not able to find an solution.

 

Any help is appreciated

  • carl1to Profile Picture
    carl1to 194 on at
    Re: Custom Connector with raw body (JSON)

    No, I didn't.

    But there is a connector available for UiPath Orchestrator: UiPath Orchestrator - Connectors | Microsoft Learn

  • JezLomax Profile Picture
    JezLomax 8 on at
    Re: Custom Connector with raw body (JSON)

    I have exactly the same issue. Did you manage to find a solution?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics