Get Single List Item - Filter Fails without List Picker

UiPath.MicrosoftOffice365.Activities = 2.7.24

Using SharePoint Activities with Integration Service connection.

I use Get Single List Item without the list picker, so I pass the list ID and site URL as variables. I want to get a specific item by ID. The “Filter By ID” button disappears when I change the list picker to “Enter URL.”

Screenshot 2024-12-03 203732

When I try to set the filter as “ID equals variable”, the activity throws an error:

RemoteException wrapping UiPath.MicrosoftOffice365.Office365Exception: The request is malformed or incorrect. —> RemoteException wrapping UiPath.MicrosoftOffice365.Office365InternalException: Code: invalidRequest
Message: A provided field name is not recognized

Image1: 2 activities configured as same; first one doesn’t have any filters, the second one has a filter.

Image2: The filter window of the second activity:

Image3: The activity with the filter failed with an exception: Get Single List Item: The request is malformed or incorrect.

How to filter by ID while using the “Enter URL” option instead of the “List Picker”?

@sarikayaebru

just to verify did you happen to try to add filter and then variablize the list pickers?

also is the column name correct?

cheers

@Anil_G Hi

Yes, the filter is changing to an empty field in this case. And yes, the column name is “ID”, it’s a default column.

@sarikayaebru

as per error A provided field name is not recognized …ID might be wrong…

or it might be that in the columns to retreive it might be expecting the ID column as well…try to add it and check…

cheers

Please try to replicate the error by trying the same case. I explained it in detail in the first post.

@sarikayaebru

Wanted you to check as I tried same without intergation services and it worked…with adding column name in retreived columns and then fitlering

unfortunately I dont have access to integration services…so wanted you to check the same…

as far as activity is concerned I believe the filtering is happening after retreival…and if we donot include that column in the columns to retreive then it might not filter and that might be causing the error

cheers

Hi @Anil_G

I tried your suggestion and added “ID” to the Columns to retrieve but this didn’t fix the issue.

1 Like

Hi @sarikayaebru.

You cannot filter by ID( the api does not support it and it makes sense, if you have the id you can just use that to fetch the item). However, the By Id button should not disappear, and this is a bug.

The bugfix is due to be released in version 3.1.0 of Microsoft Office 365 activities.

Hi @Mihai_Dunareanu,

My aim was to fetch the record by ID while giving the list ID and site URL without the list picker. But it was not possible because once I change the list picker to variable input, the ID option was disappearing.

Is there any other option for this, or will it be possible with the new release?

@Mihai_Dunareanu

Ideally when integration service is not there and if we use for each list item with fields/ID eq 'value' it did work..is the api different in that case?

Cheers

Hey @sarikayaebru,

This is fixed in the latest preview 3.1.10-preview.

It will be officially released around 20 of May.

Hi @AlexCrijman

Thank you for taking this into consideration.

Kind regards

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