cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AthenaPM
Helper I
Helper I

Collections returing value: True when API requests are sent using Flow

Hi,

 

I'm looking to utilise data (in the form of JSON from a custom API) to create collections in powerapps but the flow i'm currently running seems to return one column: Value with True as the only column value. So the flow seems to work fine - but I can't get any of the data that is in the response from the JSON.

 

 

PowerAuto (1).pngPowerAtuto(2).png

 

 

The idea is to create an app that sends requests to the API returing the JSON in a flow to the App, I've seen a lot of posts suggesting to re assemble the flow and then try it again which hasn't worked for me, but I haven't been able to find a response that worked in my situation.

 

Another issue is that when I include a schema in the Response part of the flow (as i have above), when I attempt to add the flow to powerapps I get the error: Registering error - again I've seen the posts that suggest fields aren't given values however I've checked and they all seem to have values.

 

JSON schema:

{
    "type""object",
    "properties": {
        "total": {
            "type""integer"
        },
        "nb_pages": {
            "type""integer"
        },
        "items": {
            "type""array",
            "items": {
                "type""object",
                "properties": {
                    "id": {
                        "type""integer"
                    },
                    "percentage": {
                        "type""number"
                    },
                    "approaches": {
                        "type""array"
                    },
                    "Alpha": {
                        "type""array",
                        "items": {
                            "type""object",
                            "properties": {
                                "id": {
                                    "type""integer"
                                },
                                "name": {
                                    "type""string"
                                },
                                "parent": {
                                    "type""object",
                                    "properties": {
                                        "id": {
                                            "type""integer"
                                        },
                                        "name": {
                                            "type""string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "id",
                                "name"
                            ]
                        }
                    },
                    "attributes": {
                        "type""array"
                    },
                    "countries": {
                        "type""array"
                    },
                    "structure": {
                        "type""array"
                    },
                    "cap": {
                        "type""array"
                    },
                    "regions": {
                        "type""array"
                    },
                    "gamma": {
                        "type""array"
                    },
                    "focus": {
                        "type""array"
                    },
                    "as_of": {
                        "type""string"
                    },
                    "geographic": {
                        "type""object",
                        "properties": {
                            "id": {
                                "type""integer"
                            },
                            "name": {
                                "type""string"
                            }
                        }
                    }
                },
                "required": [
                    "id",
                    "percentage",
                    "approaches",
                    "alpha",
                    "attributes",
                    "countries",
                    "structure",
                    "cap",
                    "regions",
                    "focus",
                    "gamma",
                    "as_of"
                ]
            }
        }
    }
}
 
Any help would be much appreciated!
 
Thank you
0 REPLIES 0

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,243)