web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps for makers.G...
Power Apps
Answered

PowerApps for makers.GetConnectors $filter error

(0) ShareShare
ReportReport
Posted on by 4

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

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    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,

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard