Skip to main content

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: newo] { "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 

Be the first to reply!

Reply