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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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