0

I tried this code to get value :

docEnumerator = collVideoLibrary.getEnumerator();
//Looping through the collection
while (docEnumerator.moveNext()) 
{
    docItem = docEnumerator.get_current();
    var description = docItem.get_item('Title');
}

but only "Title" are getting from library, please do needful.

1 Answer 1

0

Try below code , To get file name with extension

while (ListEnumerator.moveNext()) {
        var Item = ListEnumerator.get_current();


       fileRef = Item.get_item('FileRef');

Hope this will help

7
  • Great ! Let me know if you need any other help. Jul 24, 2015 at 8:45
  • You can also use item.get_item("FileLeafRef") if you want just file name not full path
    – Yayati
    Jul 24, 2015 at 8:46
  • Hi Bhaskar, I need one help, How to Get Active Directory Groups in Sharepoint 2013 using client object model?
    – SNGOKUL
    Jul 24, 2015 at 8:54
  • How to get video extension from "Asset Library"?
    – SNGOKUL
    Jul 24, 2015 at 9:07
  • I am not sure about active directory , let me check. It will be better if you post this in other question as others can also see it and help. Jul 24, 2015 at 9:10

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.