The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Andreas Davros ,
Per my test, I can reproduce this scenario too. If you want to get the file by search, you need to set the search term the whole word in the file name such as '12', 'Word', and '12345'. Substring of them such as 'rd', '234' won't match the result. You can also set metadata and file content as searchTerm value. Here is the document for more details
https://learn.microsoft.com/en-us/graph/api/driveitem-search?view=graph-rest-1.0&tabs=http
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.