How to use filter option in Get List Items Sharepoint activity?

Hi,

I’m currently working with Classic Sharepoint activities to get the list items from a site. So, Get List Items activity has a property to filter the list. While I’m adding a column name and value, I’m getting a syntax error as: “Literal only supports value types and immutable type System.String. The type system.object cannot be used as literal”.
Has anyone faced this issue?

Appreciate your help.

@ChagantiAkhil,

Kindly share more details like which activity/property/how you are passing etc to understand the issue in detail. Can share screenshot also if possible.

Thanks,
Ashok :slight_smile:

Here is the screenshot:

@ChagantiAkhil,

Ok. Tried passing just Boolean True without “”?

Hi @ChagantiAkhil

Please refer below thread which might helps your issue

Yeah, I tired with most of the combinations: New Case - “True”; ‘New Case’ - True; ‘New Case’ - “‘True’”; “New Case” - “True”; “‘New Case’” - “‘True’”

None of them worked!!

I tired hardcoding all the values, but still facing the same issue

@ChagantiAkhil,

Try this thread if it works. Unfortunately I don’t have a setup to try & test this.

Thanks,
Ashok :slight_smile:

The activity is not allowing to use OData references. It is showing a Filter builder.

@ChagantiAkhil

Try like below

Hope it helps!!

It still gives the same error message !!
“Literal only supports value types and immutable type System.String. The type system.object cannot be used as literal”

@ChagantiAkhil
Can you try by updating the dependencies to the highest version by making runtime rule as lowest applicable

It is working. Thankyou @pravallikapaluri

Also, I noticed one more thing related to this activity: It is having a limitation on how many records to pull when we apply a filter.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.