cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
seadude
Memorable Member
Memorable Member

Custom Connector: POST With Nested Schema?

I'm building a Custom Connector to a web API. There is a POST call that has a nested array in the Body that the Custom Connector builder is not recognizing.

 

Method: POST

Body:

 

 

 

[
  {
    "Label": "ABCDEF012345670000000001",
    "ResultDate": "2015-12-15T00:00:00Z",
    "FileName": "test.pdf",
    "DocumentFileBase64": "File encoded in Base64==",
    "Results": [
      {
        "TestName": "ABC",
        "Quantity": 100.00,
        "Passed": true,
        "Notes": ""
      }
    ]
  }
]

 

 

 

 

When I paste this into the Custom Connector builder, there is no "Results" option.

 

seadude_0-1613539053771.png

 

 

How do I get the "Results" nested array to show up in the Custom Connector? 

Thank you

4 REPLIES 4
seadude
Memorable Member
Memorable Member

Anyone?

I'm stuck with this same problem. 

seadude
Memorable Member
Memorable Member

Bump

jquicenog02
New Member

Create a collection of objects and pass the collection into the body property.

 

ClearCollect(vmsCollection,
{resourceid: "12345",recurrence: "daily"},
{resourceid: "987456",recurrence: "daily"}
);
CustomConnector.PostMethod({body:vmsCollection});

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,817)