Same think here : what is the syntax used into query ? Is there any documentation about it ? e.g. how do I search only files created by a specific user ?
Hi! I would like to receive some suggestions .
I am using Offcie365 - v 1.6. . I am trying to get Files/Folders List from Sharepoint and Check if a Folder exists… If the Folder is empty (without files), my return is error (no item)… If the Folder is not empty, my return is the Drive/File.
What I need to do to receive FOLDER information (from this empty Folder) instead Error ?
Find Files and Folders: set the output parameter Results = searchResults (variable of type Microsoft.Graph.DriveItem[ ])
Add a For Each activity with TypeArgument = Microsoft.Graph.DriveItem and Values = searchResults
2.1. For each item, add an If activity with Condition = not item.Folder is nothing (this means the drive item is a Folder). If the condition is true, item.folder.ChildCount will give you the number of children in that folder (if 0, it means empty folder).
I must get files not at the last one Directory . I must get the Directories and Files at the Middle of the Path (e.g Drive=Documents; Subfolder = “manager/files” - it´s Ok ; Drive=Documents; Subfolder = “manager” - not folder and files in Results.
The last one directory Ok to get Files and Folders but Directory at the middle (Gerenciamento de Internados) no files and folders - error message
For me , not using last Folders (Auditoria Externa), uipath shows :
RemoteException wrapping Microsoft.Graph.ServiceException: Code: itemNotFound
Message: The resource could not be found.
@ovidiuponoran Thanks for this post. The information about the Query parameter is the only information about how it works that I’ve been able to find.
In my tests, Query seemed to only work as a “‘filename’ or ‘foldername’ contains” filter. I tested with several file types (.xlsx, .docx, .txt) and never could get it to work by “content” (i.e. text found within the file). I also tried setting file attributes in Sharepoint to certain text, but Find Files and Folders did not find them. What did you mean by the word “content” in #3 and #4 in your post?
Also, I was not able to get the OR syntax to work (#4). Do you have any more details about how “OR” works?
This
finds 0 files.
But changing the queryString to “Chiefs” returns the expected two files (ChiefsWin.xlsx and Chiefs.docx). (But as mentioned in the “contents” question, it does not find sometext.txt which contains the word “Chiefs” within the file.
You have to write the extact name of the file or folders you wanna find. For exemple, if you want to find the excel named “Invoice_Tech” you have to put in the query “Invoice_Tech.xlsx” and the bot will search all your entire files in your computer until he finds the exact file.