I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time.
First, I am able to get IDs which are selected using the following code
var context = SP.ClientContext.get_current();
var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
So, I am getting the IDs which are selected, now I need to fetch the name of those documents by the IDs.
Guys can anyone please tell me what is the best way to do so.