Skip to main content

Posts

Featured

Get Attachment URL from list item (en)

<script type="text/javascript">     $(document).ready(function() {         // Rest URL var requestUri = "/_api/lists/getbytitle('MyCustomList')/items?$select=Title,ID,Attachments,AttachmentFiles&$expand=AttachmentFiles";             $.ajax({                 url: requestUri,                 type: "GET",                 headers: { "ACCEPT": "application/json;odata=verbose" },                 success: function (data) {                      $.each(data.d.results, function (i, item){                         var title = item.Title;                         var id = item.ID; var attachmentUrl = item.AttachmentFiles.results[0]; //alert(attachmentUrl.FileName); //alert(attachmentUrl.ServerRelativeUrl);                     })                 },                 error: function () {                     alert("

Latest Posts

Save list as template on modern team site not available in SharePoint Online

Update list in different site collection using the API(cross domain)

Angular 6 Tutorials from scratch.

WCF – How to Host a custom WCF service in SharePoint