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".
But when I use the action in a cloud flow, I get this error:
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
No, I didn't.
But there is a connector available for UiPath Orchestrator: UiPath Orchestrator - Connectors | Microsoft Learn
I have exactly the same issue. Did you manage to find a solution?