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

PowerApps for makers.GetConnectors $filter error

I am trying to use powerappsformakers.getconnectors({'api-version':"2016-11-01"}) in my canvas app to get a list of connectors but the app gives an error message:"The environment filter must be set". But when i look at the documentation for this action, it is not mentioned that the $filter parameter is required. It only works when i set the filter to "environment eq '<envid>'".

I tried 2 more ways here but for all of them it returns the same error:

1. setting the filter to "environment ne null" but it gives the same error for this as well.

2. setting the filter to "environment eq"+dropdown1.SelectedText.Value but this too results in the same error.

 

I cannot hardcode the env id in the $filter. My requirement is to pass the environment id as a variable or refer to the value selected in the dropdown control which contains a list of environment id's. If this does not work i was thinking of returning all the connectors from all the environments and then apply filter() for returning the connectors for the specific environment. Hence the usage of diff ways.

AnuradhaS_0-1657023092981.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @AnuradhaS ,

 

Please try and use Power Automate to achieve your need:

Items of Combo box to get all environments:

vjefferni_0-1657268435839.png

OnChange to collect all connections returned from the flow:

vjefferni_1-1657268447437.png

Flow:

vjefferni_3-1657268644413.png

vjefferni_4-1657268648890.png

JSON schema:

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "id": {
                "type": "string"
            }
        },
        "required": [
            "name",
            "id"
        ]
    }
}

 Result (in another Combo box's Items):

vjefferni_5-1657268785514.png

 

Hope this helps.

 

Best regards,

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @AnuradhaS ,

 

Please try and use Power Automate to achieve your need:

Items of Combo box to get all environments:

vjefferni_0-1657268435839.png

OnChange to collect all connections returned from the flow:

vjefferni_1-1657268447437.png

Flow:

vjefferni_3-1657268644413.png

vjefferni_4-1657268648890.png

JSON schema:

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "id": {
                "type": "string"
            }
        },
        "required": [
            "name",
            "id"
        ]
    }
}

 Result (in another Combo box's Items):

vjefferni_5-1657268785514.png

 

Hope this helps.

 

Best regards,

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (2,903)