Skip to main content
Question

Selected data in Selected Folder


Forum|alt.badge.img

I am trying to get data after Selected Date in selected Folder 
I am using dll with Below Code in C#

  searchTermFiles = boxClient.SearchManager.QueryAsync(
          query: keyword,                             // Names, descriptions, text contents of files, and other data
          ancestorFolderIds: null,                          // Searches to specific parent folders
          contentTypes: new[] { "file_content", "name" },                       // Can be name, description, file_content, comments, or tags
          limit: limit,                                                 // The default is 30 and the maximum is 200                          
          type: "file",                                                 // Can be file, folder, or web_link,
          scope: "user_content",
          //fileExtensions: new[] { "docx" },
          //createdAfter: isFirstTimeScan ? null : DateTimeOffset.Parse(keywordCollection.ModificationDate.ToString()),
          //createdBefore: DateTimeOffset.Parse("02/01/2023"),
          //updatedAfter: modificationdate,
          //updatedBefore:"",                         
          //trashContent: "",
          //mdFilters:,
          offset: offset,
          sort: "modified_at",
          direction: BoxSortDirection.ASC
).Result;
 

I have FolderId from I want to get Data,but i want to get data after selected Date.

Issue is "query " parameter not get any null,""," ",string.Empty or "*"

So Give Me the Solution For This to how to get selected Folder Data after selected Date. 

Also a am using this Call 

listFolderResult = boxClient.FoldersManager.GetFolderItemsAsync(folderId, 1000, offSet, Fields).Result;
but here they also give me a previuos file and i want files After Selected Date.

Give me solution for this .

Also Give Any Other Way Set Query as Null.
or Get Data After Selected Date in Selected Folder 

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings