0

I need to get the URL of each video in a library with JavaScript (I don't know how many videos will be in the library). I also need to get specific information about each video, such as date created. How would I do this? I am using a Script Editor web part to execute the JavaScript.

zocode
  • 19
  • 5

2 Answers2

0

You could use rest API to get the information you wanted.

/_api/web/lists/GetByTitle('library title')/files

enter image description here

/_api/web/GetFolderByServerRelativeUrl('/sites/dev/Doc')/Files

enter image description here Get to know the SharePoint REST service

Amos
  • 2,030
  • 1
  • 5
  • 9
0

Rest call with the below url will get you what you looking for

/_api/web/lists/getbytitle('" + youlistname + "')/items?$select=*,FileRef/FileRef"