I try to access an asset library in a SharePoint-Hosted App via the REST API. The app is hosted in SharePoint Online. I get the properties of the images (e.g. the title etc). But I do not find a property which contains a link to the image in SharePoint. Is there a way to get this?

Here is my code:

 public onQuerySucceeded(sender, args) {
     var listItemInfo = '';
     var listItemEnumerator = this.collListItems.getEnumerator();

     while (listItemEnumerator.moveNext()) {
         var oListItem: SP.ListItem = listItemEnumerator.get_current();

         if (oListItem != null) {
             listItemInfo += "\nID: " + oListItem.get_id() +
                 "\nTitle: " + oListItem.get_item('Title');

Add following to your REST query

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.