ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Display list of files ( more than 1000 records ) from Google Drive using Google Drive API V3 in ASP.NetHi @aruna,<br />Please try the following<br /><br /><a href = 'link(Threads/413626/List-and-download-files-from-Google-Drive-using-Google-Drive-API-in-ASPNet/)'>List and download files from Google Drive using Google Drive API in ASP.Net</a><br /><br />It might help you.<br /><br />Cheers Andrea.http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/Tue, 10 Jan 2017 08:30:21 GMTDisplay list of files ( more than 1000 records ) from Google Drive using Google Drive API V3 in ASP.Net<p>@Andrea</p> <p>Are you a human or a BOT?</p> <p>Before replying or giving a link, read fully the question first. Did you understand what I m asking. Whenever I m asking a question, on the next minute, you are sending a irrelevant reply with useless link. Is this your hobby?</p> <p>Your mentioned link is irrelevant and useless for my question. I m looking for the solution for pageSize/pageToken and not for Downloading a file.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/Tue, 10 Jan 2017 08:34:45 GMTDisplay list of files ( more than 1000 records ) from Google Drive using Google Drive API V3 in ASP.Net<p>Achieved thru Google Script. Thanks to mesgarpour (<a href="https://gist.github.com/mesgarpour/07317e81e9ee2b3f1699" target="_blank">link</a>)</p> <p>&nbsp;</p> <pre class="brush: js">var folderId = &#34;Enter the Folder Id here&#34;; // Main function 1: List all folders, &amp; write into the current sheet. function listFolders(){ getFolderTree(folderId, false); }; // Main function 2: List all files &amp; folders, &amp; write into the current sheet. function listAll(){ getFolderTree(folderId, true); }; // ================= // Get Folder Tree function getFolderTree(folderId, listAll) { try { // If you want to search from the top (root) folder var parentFolder = DriveApp.getRootFolder(); // If you want a tree of any sub folder //var parentFolder = DriveApp.getFolderById(folderId); // Initialise the sheet var file, data, sheet = SpreadsheetApp.getActiveSheet(); sheet.clear(); sheet.appendRow([&#34;Full Path&#34;, &#34;Name&#34;, &#34;Date&#34;, &#34;URL&#34;, &#34;Last Updated&#34;, &#34;Description&#34;, &#34;Size&#34;]); // Get files and folders getChildFolders(parentFolder.getName(), parentFolder, data, sheet, listAll); } catch (e) { Logger.log(e.toString()); } }; // Get the list of files and folders and their metadata in recursive mode function getChildFolders(parentName, parent, data, sheet, listAll) { var childFolders = parent.getFolders(); // List folders inside the folder while (childFolders.hasNext()) { var childFolder = childFolders.next(); // Logger.log(&#34;Folder Name: &#34; + childFolder.getName()); data = [ parentName + &#34;/&#34; + childFolder.getName(), childFolder.getName(), childFolder.getDateCreated(), childFolder.getUrl(), childFolder.getLastUpdated(), childFolder.getDescription(), childFolder.getSize() ]; // Write sheet.appendRow(data); // List files inside the folder var files = childFolder.getFiles(); while (listAll &amp; files.hasNext()) { var childFile = files.next(); // Logger.log(&#34;File Name: &#34; + childFile.getName()); data = [ parentName + &#34;/&#34; + childFolder.getName() + &#34;/&#34; + childFile.getName(), childFile.getName(), childFile.getDateCreated(), childFile.getUrl(), childFile.getLastUpdated(), childFile.getDescription(), childFile.getSize() ]; // Write sheet.appendRow(data); } // Recursive call of the subfolder getChildFolders(parentName + &#34;/&#34; + childFolder.getName(), childFolder, data, sheet, listAll); } }; </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/http://www.aspforums.net/Threads/106258/Display-list-of-files-more-than-1000-records-from-Google-Drive-using-Google-Drive-API-V3-in-ASPNet/Tue, 10 Jan 2017 14:11:50 GMT