Get items by CAML Query

by rmickler » Wed Dec 07, 2016 2:36 pm

Trying to run this workflow directed at a Forms list on the site where Status equals Approved. I continually receive an Exception: List:'Name of Document' does not exist at site with URL 'https://servername/sites/hr'.

<View Scope="RecursiveAll">
<FieldRef Name="Status" />
<Value Type="Choice">Approved</Value>
<FieldRef Name="Status" />
<FieldRef Name="FileRef" />
<FieldRef Name="FileLeafRef" />

Hoping i'm just missing something simple.
Thanks in advance for your help!
query.PNG (219.9 KiB) Viewed 366 times
Posts: 4
Joined: Wed Dec 07, 2016 1:17 pm

by rmickler » Wed Dec 07, 2016 6:01 pm

I've gotten past the error as I had been trying to select the list via a lookup instead of just using /sites/hr/forms. The only problem now is that it isn't giving me an error its just not returning any of the documents that are in the list.
Posts: 4
Joined: Wed Dec 07, 2016 1:17 pm

by Roman Rylov » Thu Dec 08, 2016 11:40 am


I noticed that you use log to history to log the result.
I suppose there could be an issue. To know more please check out the following blog post:
SharePoint 2013 Designer and Workflow Tips, Tricks & Traps
User avatar
Roman Rylov
Posts: 330
Joined: Tue Nov 11, 2014 6:25 pm

Return to Workflow Actions Pack for SharePoint 2013