Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

REST query of task list in sharepoint online - how to find subtasks?

$
0
0

I am able to query the desired task list with a REST query, but I can't tell what items are subtasks. I've read lots of places that there is a ParentID field that captures that relationship,but I can't see that field, and when I try to query against it in my REST url I get error "No Property 'ParentID' exists in type 'Microsoft.SharePoint.Linq.DataServiceEntity' at position 0."

My test REST query is this: https://TenantName.sharepoint.com/sites/SiteName/Subsite/_vti_bin/listdata.svc/ProjectSummary()?$filter=ParentID eq 2

I get the same thing if I filter on ParentID or ParentId

When I don't specify a filter, I get all data back, and I see no field that contains the subtask/parent relationship - although when I view the list in the Browser, in SharePoint I can see the subtasks are indented - so the relationship is there somewhere.

I don't actually want to filter on the ParentId, I want to retrieve it along with the list items and get the Title of the "Parent" Item.

Thanks

-John


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>