[site name]_api/web/lists/GetByTitle(‘ListName’)/items So why does this not work? All the examples I see indicate that it should work.
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <m:code> -1, Microsoft.SharePoint.Client.InvalidClientQueryException </m:code> <m:message xml:lang="en-US"> The expression "web/lists/GetByTitle(‘ListName’)/items" is not valid. </m:message> </m:error> (20161101) More info:
I’m working through this example: [https://blogs.msdn.microsoft.com/sridhara/2014/08/21/fix-sharepoint-2013-workflow-recursion-prevention-part-2/]
List 2 successfully creates a new item, and I can get the GUID from that new item. This next step fails.
HTTP Web Service info: [%WorkflowContext:CurrentSiteURL%]_api/web/lists/GetByTitle('List2')/items?$filter=GUID eq '[%Variable: NewItemGUID%]'
Response Code = BadRequest. I also log the http web service call string:
https://testwebsite/_api/web/lists/GetByTitle(‘List2’)/items?$filter=GUID eq '38bc1c7d-e020-4c71-a8bf-5b1a344e6b1d'
What's wrong with the above?
[site name]/_api/web/lists/GetByTitle('ListName')/items