CAML with SharePoint Activity

Hi,

I’m trying to get a value based on a Project ID with the caml query, here is what I’m trying at the moment:

"<View><Query> <Where> <Eq> <FieldRef Name='Project ID' /> <Value 
Type='Text'>'123456789'</Value> </Eq> </Where> </Query></View>"

Anyone know what I’m doing wrong? I looked up at alots of thread about caml and I can’t find a solution. This query give me 102 results (there a total of 102 results in the SharePoint list…)

Now using

"<Query><Where><Eq><FieldRed Name ='ProjectID'/><Value Type='Text'>1234</Value></Eq></Where></Query>"

But I am getting this error:
Get List Items: Value does not fall within the expected range.

Using the following activity:
UiPathTeam.SharePoint.Activities.Lists.ReadListItems

Working solution:

<Query><Where><Eq><FieldRef Name ='ProjectID'/><Value Type='Text'>1234</Value></Eq></Where></Query>

1 Like

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