cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Custom API

Hi.

 

I'm using a custom connector and there's a method that returns a compound object with an array property that I want to display in a Gallery, but without sucess. For methods that return an array I have no issues. Is there any way to pass directly the array property to the Gallery?

 

Object for example:

 

"definitions": {
    "OutterObject": {
      "type": "object",
      "properties": {
        "PropertyOut1": {
          "type": "string"
        },
        "PropertyOut2": {
          "type": "string"
        }
        "InnerObjects": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/InnerObject"
          }
        }
      }
    },
    "InnerObject": {
      "type": "object",
      "properties": {
        "PropertyInner1": {
          "type": "string"
        },
        "PropertyInner2": {
          "type": "string"
        }
      }
    }
  }
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Custom API

Finally I've found the issue. The object used in the array had an issue in its definition which meant I couldn't properly use it in a gallery.

 

So resuming, it's possible to supply to a gallery an array inside a compound object (i.e. a property that it's an array).

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Custom API

Hi maps05,

 

Have you check this documentation about “Register and use custom connectors in PowerApps”? I guess that this doc could be a reference for you:
https://powerapps.microsoft.com/en-us/tutorials/register-custom-api/

 

Have you created the custom connector successfully?


When you display the data on a gallery, do you get any error messages?

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Custom API

I've already read the documentation.

 

I've already created successfully the custom connector: I'm able to test it and get results when I create the connector and I'm able to consume and display data in the powerapp. My problem relies on one method that returns a coumpound object with a property that it's an array and I want to display in a gallery.

 

I've tried:

 

 - Set the data of the gallery to MyCustomConnector.MyMethod().PropertyWithArray wich is not a valid formula

 - Saving the MyMethod() results and passing the array property to the gallery

Highlighted
Frequent Visitor

Re: Custom API

Finally I've found the issue. The object used in the array had an issue in its definition which meant I couldn't properly use it in a gallery.

 

So resuming, it's possible to supply to a gallery an array inside a compound object (i.e. a property that it's an array).

View solution in original post

Highlighted
New Member

Re: Custom API

Try this link for some good info SSIS REST API.

 

And this article also covers all these points :

1- SSIS JSON Source (File, REST API, OData Connector)

2- SSIS XML Source (SOAP Web Service, XML File Connector)

 

Hope it will helpful

 

Highlighted
Advocate II
Advocate II

Re: Custom API

HI and was the error I'm getting the same ?

 

Thank you

Tomas

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,151)