This project has moved. For the latest updates, please go here.


SPGetListItemsJson Doesn't Handle Attachments Correctly


The Attachments column will either return a Boolean (0/1) or a list of the attachments if <IncludeAttachmentUrls>TRUE</IncludeAttachmentUrls> is specified. In 2014.01, the column type Attachments is treated as a Lookup column.

SPGetListItemsJson should return the Boolean by default, and an array of URLs if present.
Closed Dec 16, 2014 at 6:34 PM by sympmarc
Fixed/deployed in 2014.02


sympmarc wrote Aug 22, 2014 at 2:10 AM

Fixed in 2014.02ALPHA1

eLGi wrote Dec 3, 2015 at 9:43 AM

Hey, it returned everything correctly for me on 2014.01, and now in 02 it returns only boolean. Where can I specify this <IncludeAttachmentUrls>TRUE</IncludeAttachmentUrls>? Into CAMLQuery or ViewFields?

eLGi wrote Dec 3, 2015 at 9:50 AM

Can't edit my comment so am writing a new one. Fixed, added <IncludeAttachmentUrls>TRUE</IncludeAttachmentUrls> into CAMLQueryOptions.