How to find Sub folder id in outlook

Roben, Raquel 0 Reputation points
2025-10-07T20:44:25.7166667+00:00

I need to find the sub folder id for a folder in my inbox

Outlook | Web | Outlook.com | Settings
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Randy Baroja 15,575 Reputation points Independent Advisor
    2025-10-08T00:18:43.9933333+00:00

    Hi,

    I see what you’re trying, you want to locate the folder ID for a specific subfolder inside your Outlook inbox. That’s a great question because Outlook doesn’t show folder IDs directly in the normal web or desktop interface, so it’s a bit hidden unless you know where to look.

    If you’re using Outlook on the web, there’s actually a sneaky little way to peek at the folder ID without any special tools, just your browser. Open your mailbox and click into the subfolder you want, then hit F12 to bring up the developer tools (or right-click and choose Inspect). Sometimes, you’ll spot the folder ID right in the address bar, it’s that long string after id= in the URL. If you don’t see it there, you can flip to the Network tab in Developer Tools, refresh the page, and look for a request named GetFolder or GetChildFolders. When you click one of those, the folder’s "Id" usually shows up in the JSON response. It’s a bit of a techy trick, but once you’ve done it once or twice, it’s surprisingly straightforward.

    Kind regards,

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Alice-N 2,380 Reputation points Microsoft External Staff Moderator
    2025-10-08T01:08:50.75+00:00

    Dear Roben, Raquel 

    Thank you for reaching out to the Microsoft Q&A Community. I understand you're experiencing an issue. I am happy to assist you.

    Here is a clear approach to help you understand your options: 

    Option 1: Using Microsoft Graph Explorer 

    • Go to Graph Explorer. 
    • Sign in with your Outlook account. 
    • Run this query to list all mail folders: 

    GET https://graph.microsoft.com/v1.0/me/mailFolders 

    This will return a JSON response with each folder’s id and displayName. 

    • To find subfolders of a specific folder: 

    GET https://graph.microsoft.com/v1.0/me/mailFolders/{folder_id}/childFolders 

    Replace {folder_id} with the parent folder’s ID. 

    Option 2: Using PowerShell for Exchange Online 

    • Open PowerShell and connect to Exchange Online:  Connect-ExchangeOnline 
    • Run this command to get the folder ID: 

     Get-MailboxFolder -Identity ******@domain.com:\Inbox\SubFolderName 

    This will return the folder’s FolderId. 

    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.

    Warm regards 

    0 comments No comments

  4. Alice-N 2,380 Reputation points Microsoft External Staff Moderator
    2025-10-15T03:47:50.2133333+00:00

    Hi Roben, Raquel

    It has been a while and I am writing to see how things are going with this issue. Have you had a chance to check the replies provided? Any update would be appreciated.  

    Warm Regards

    0 comments No comments

  5. Alice-N 2,380 Reputation points Microsoft External Staff Moderator
    2025-10-30T04:45:21.5633333+00:00

    Hi Roben, Raquel

    It has been a while and I am writing to see how things are going with this issue. Have you had a chance to check the replies provided? Any update would be appreciated.  

    Warm Regards

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.