cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maps05
Level: Powered On

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
maps05
Level: Powered On

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
Community Support Team
Community Support Team

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
maps05
Level: Powered On

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

maps05
Level: Powered On

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

Nancyrai37
Level: Power Up

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

 

TOPDHI
Level: Powered On

Re: Custom API

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

 

Thank you

Tomas

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (4,603)