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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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