Hi @Siva M,
Can you tell me: are there some special characters (or spaces for example) in your filename?
For example, I have a folder named "the a a"
Please enclose the file name "the a a" in double quotes to ensure that search engines see it as an exact matched phrase rather than a separate word. This will help you find files with exact file name matches.
Here is a test for your reference:
Here is test result:
Maybe you can try Graph explorer to test the retrieval in different situations before using it in the code.
https://developer.microsoft.com/en-us/graph/graph-explorer
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.
Best Regards
Cheng Feng