cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
martinfy
Level: Power Up

Custom connector and interpretation of JSON without complete key/value structure from API

I have created a custom connector which connects to an endpoint that returns JSON in the following format:

{ 
  "sammy" : {
    "username"  : "sammy",
    "location"  : "Indian Ocean",
    "online"    : true,
    "followers" : 987
  },
  "jesse" : {
    "username"  : "jesse",
    "location"  : "Pacific Ocean",
    "online"    : false,
    "followers" : 432
  },
  "drew" : {
    "username"  : "drew",
    "location"  : "Atlantic Ocean",
    "online"    : false,
    "followers" : 321
  },
  "jamie" : {
    "username"  : "jamie",
    "location"  : "Pacific Ocean",
    "online"    : true,
    "followers" : 654
  }
}

The problem, when I try to use the data in PowerApps, i.e. in a gallery, the first level of the JSON structure isn't on a key value format (i.e. "sammy" and "jessy" insted of "name":"sammy" and "name":"jessy"). These are interpreted as keys and have to be accessed in a non dynamic fashion with getUsers()."sammy", getUsers()."jessy" and so forth where getUsers() is the function name in the custom connector.

 

Is it possible to configure the custom connector, so these values aren't interpreted as keys but values? Or to completely skip the first level (since the information also is available in the next level of the JSON structure)?

1 REPLY 1
TopShelf-MSFT
Level 10

Re: Custom connector and interpretation of JSON without complete key/value structure from API

Bumping for visibility 

 

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,363)