I have a requirement to download the searched documents in search result webpart of search page to LAN folder.
Please help how to do the same using JSOM and JQUERY in script editor.
I have a requirement to download the searched documents in search result webpart of search page to LAN folder.
Please help how to do the same using JSOM and JQUERY in script editor.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Namita BhoiPosted Apr 12, 2018, 7:01 AM
Thanks Nanddeep. I have to download all the documents in bulk. Below is my JSOM code. I am getting handle of documents in results. please help me to download them. I am new for JSOM coding.
var clientContext = new SP.ClientContext('/..../');
var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(clientContext);
keywordQuery.set_queryText(TreatyID);
var searchExecutor = new Microsoft.SharePoint.Client.Search.Query.SearchExecutor(clientContext);
results = searchExecutor.executeQuery(keywordQuery);
clientContext.executeQueryAsync(onQuerySuccess, onQueryFail);
function onQuerySuccess(sender, args)
{
$.each(results.m_value.ResultTables[0].ResultRows, function ()
{
});
}
Nanddeep NachanPosted Apr 11, 2018, 10:03 AM
Namita BhoiPosted Apr 11, 2018, 9:35 AM
Nanddeep NachanPosted Apr 11, 2018, 9:13 AM