cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pieter-nfx
New Member

Invalid filter clause - syntax help needed

Hi everyone,

 

I created a working custom connector that sends a GET request to the msgraph:

https://graph.microsoft.com/v1.0/groups?&$filter=startswith(displayname,'test')

 

This request works in the Microsoft Graph explorer, and within the custom connector test page. The custom connector splits the base URI and the additional queries. 

 

The base request works. This powerapp code is valid and returns all groups within the AzureAD: 

 

 

 

ClearCollect(
Tester1;
'P-Test-AZGroups'.Groups().value.displayName
)

 

 

 

 

This powerapp code is invalid, no matter what I put in the * field.  

 

 

 

ClearCollect(
Tester1;
'P-Test-AZGroups'.Groups({'$filter': ********* }).value.displayname
)

 

 

 

 

Examples I've used:

startswith(displayname,'test')
=startswith(displayname,'test')
"startswith(displayname,'test')"
"=startswith(displayname,'test')"
'=startswith(displayname,'test')'
"displayName eq 'test'"
"displayName like 'test'"

 

Does anyone know how to fill in the $filter field with a query? I can't seem to find the right syntax. I had some doubts if this question fits within this board (since the connector works) or the custom connector board. If this is the wrong board, please tell me. 😊

 

With kind regards,

 

Pieter

0 REPLIES 0

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,036)