New answers tagged odata
If you want to perform a rest query using $filter and content type id field, you can do it like below: http://siteurl/_api/web/lists/getbytitle('Documents')/items?$select=ID,Title&$filter=startswith(ContentTypeId,'0x0101') Insert the internal column names in the $select to get the column names.
I only browsed your code You have to look closely at WHERE inside the then resolves your code runs, ie. if (errCnt>0) will run before attachments are found. Also try to merge your code, you have 2 branches that almost do the similar, merge them into one... your code will become smaller.. your code will be easier to debug
Top 50 recent answers are included