cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TesDA
Responsive Resident
Responsive Resident

Error Get Items Filter Query OData Sharepoint

I'm having trouble getting the filter right in the OData filter query: 

 

The column name in the Sharepoint list is

Opp Status (Win Loss)

 

This is what I am looking for:

Opp Status (Win Loss) eq 'Open'

 

I've tried: 

Opp_x0020_Status_x0020_(Win_x0020_Loss)

OppStatus(WinLoss)

'Opp Status (Win Loss)' eq 'Open'

 

both come back with the below error:

The query is not valid.

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Microsoft
Microsoft

Hi @TesDA 

According to your description, an error occurred when you used the filter query in Get items

Every column in SharePoint has 2 names, internal name assigned by SharePoint and display name defined by you. 

When filter query, need to use internal name.

This is my list

v-LilyW-msft_0-1622169307358.png

 

About how to find it internal name, you can refer to the screenshots as below:

1、Select Settings ,and then select list settings.

v-LilyW-msft_2-1622169307368.png

2、select the column

v-LilyW-msft_3-1622169307373.png

3、Then can find the internal name is ‘OppStatus_x0028_WinLoss_x0029_’ of Opp Status (Win Loss)

v-LilyW-msft_4-1622169307377.png

Then please fill filter query as below and test it again.

OppStatus_x0028_WinLoss_x0029_ eq 'Open'

v-LilyW-msft_5-1622169364206.png

Hope the content above may help you.

Best Regards

Lily

View solution in original post

2 REPLIES 2
v-LilyW-msft
Microsoft
Microsoft

Hi @TesDA 

According to your description, an error occurred when you used the filter query in Get items

Every column in SharePoint has 2 names, internal name assigned by SharePoint and display name defined by you. 

When filter query, need to use internal name.

This is my list

v-LilyW-msft_0-1622169307358.png

 

About how to find it internal name, you can refer to the screenshots as below:

1、Select Settings ,and then select list settings.

v-LilyW-msft_2-1622169307368.png

2、select the column

v-LilyW-msft_3-1622169307373.png

3、Then can find the internal name is ‘OppStatus_x0028_WinLoss_x0029_’ of Opp Status (Win Loss)

v-LilyW-msft_4-1622169307377.png

Then please fill filter query as below and test it again.

OppStatus_x0028_WinLoss_x0029_ eq 'Open'

v-LilyW-msft_5-1622169364206.png

Hope the content above may help you.

Best Regards

Lily

View solution in original post

TesDA
Responsive Resident
Responsive Resident

Super helpful! I had no idea. Thank you!!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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,479)