SOLVED

"Search Folder" Is not including emails in the Inbox

%3CLINGO-SUB%20id%3D%22lingo-sub-1590014%22%20slang%3D%22en-US%22%3E%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1590014%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20only%20including%20emails%20I've%20filed%20in%20sub%20folders%20although%20I've%20selected%20Inbox%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S0Fr33_0-1597441018375.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F212539iA197E4DC5D6E09FD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22S0Fr33_0-1597441018375.png%22%20alt%3D%22S0Fr33_0-1597441018375.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1590014%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOutlook%20for%20Windows%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1590382%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1590382%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3EHi%2C%20I%20think%26nbsp%3B%3CSPAN%3EYou%20need%20to%20use%20the%26nbsp%3B%3C%2FSPAN%3EApplication.AdvancedSearch%26nbsp%3B%3CSPAN%3Emethod%20which%20performs%20a%20search%20based%20on%20a%20specified%20DAV%20Searching%20and%20Locating%20(DASL)%20search%20string.%20The%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Emethod%20and%20related%20features%20in%20the%20Outlook%20object%20model%20do%20not%20create%20a%20Search%20Folder%20that%20will%20appear%20in%20the%20Outlook%20user%20interface.%20However%3CA%20href%3D%22https%3A%2F%2Fyesornogenerator.com%2Fwhat-i-should-do-right-now-generator%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%2C%3C%2FA%3E%20you%20can%20use%20the%26nbsp%3B%3C%2FSPAN%3ESave%26nbsp%3B%3CSPAN%3Emethod%20of%20the%20Search%20object%20that%20is%20returned%20to%20create%20a%20Search%20Folder%20that%20will%20appear%20in%20the%20Search%20Folders%20list%20in%20the%20Outlook%20user%20interface.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591094%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591094%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740290%22%20target%3D%22_blank%22%3E%40S0Fr33%3C%2FA%3E%26nbsp%3BWhat%20sort%20order%20are%20you%20using%20on%20the%20search%20folder%3F%20If%20you%20remove%20the%20check%20mark%20from%20subfolders%2C%20does%20it%20find%20messages%20in%20the%20Inbox%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591587%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591587%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F75%22%20target%3D%22_blank%22%3E%40Diane%20Poremsky%3C%2FA%3E%26nbsp%3BI%20am%20sorting%20by%20date%20received.%20If%20I%20remove%20the%20check%20for%20sub%20folders%2C%20it%20does%20find%20messages%20from%20the%20inbox.%20But%20of%20course%2C%20then%20doesn't%20find%20messages%20in%20the%20sub%20folders.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1591590%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1591590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F731722%22%20target%3D%22_blank%22%3E%40melvinanorman99%3C%2FA%3E%26nbsp%3B%2C%20thanks%20for%20the%20input%20but%20-%20Wow!%20That%20is%20very%20complicated.%20I%20don't%20have%20the%20patience%20to%20work%20that%20out%2C%20it%20seems%20like%20my%20screenshot%20should%20work%20based%20on%20the%20instructions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1592860%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1592860%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740290%22%20target%3D%22_blank%22%3E%40S0Fr33%3C%2FA%3E%26nbsp%3Bif%20you%20sort%20by%20folder%20are%20there%20any%20from%20the%20inbox%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1598807%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1598807%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F75%22%20target%3D%22_blank%22%3E%40Diane%20Poremsky%3C%2FA%3E%26nbsp%3BI%20don't%20see%20the%20option%20to%20sort%20by%20folder%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S0Fr33_0-1597847315330.png%22%20style%3D%22width%3A%20156px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213288i80B65F8E284A90C2%2Fimage-dimensions%2F156x578%3Fv%3D1.0%22%20width%3D%22156%22%20height%3D%22578%22%20title%3D%22S0Fr33_0-1597847315330.png%22%20alt%3D%22S0Fr33_0-1597847315330.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1598850%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1598850%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740290%22%20target%3D%22_blank%22%3E%40S0Fr33%3C%2FA%3E%26nbsp%3BAre%20you%20in%20search%20results%20-%20either%20search%20folder%20or%20instant%20search%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-08-19_10-41-05-0000.png%22%20style%3D%22width%3A%20532px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213289i103244C68433B611%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222020-08-19_10-41-05-0000.png%22%20alt%3D%222020-08-19_10-41-05-0000.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1599162%22%20slang%3D%22en-US%22%3ERe%3A%20%22Search%20Folder%22%20Is%20not%20including%20emails%20in%20the%20Inbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1599162%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F75%22%20target%3D%22_blank%22%3E%40Diane%20Poremsky%3C%2FA%3E%26nbsp%3BOK%2C%20I%20did%20navigate%20to%20the%20search%20folder%20and%20sorted%20by%20folder%20and%20-%20(gulp)%20the%20Inbox%20was%20there!%20I%20don't%20know%2C%20but%20it's%20working.%20Thanks%20for%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

It is only including emails I've filed in sub folders although I've selected Inbox:

 

S0Fr33_0-1597441018375.png

 

8 Replies

Hi, I think You need to use the Application.AdvancedSearch method which performs a search based on a specified DAV Searching and Locating (DASL) search string. The method and related features in the Outlook object model do not create a Search Folder that will appear in the Outlook user interface. However, you can use the Save method of the Search object that is returned to create a Search Folder that will appear in the Search Folders list in the Outlook user interface.

@S0Fr33 What sort order are you using on the search folder? If you remove the check mark from subfolders, does it find messages in the Inbox? 

@Diane Poremsky I am sorting by date received. If I remove the check for sub folders, it does find messages from the inbox. But of course, then doesn't find messages in the sub folders.

@melvinanorman99 , thanks for the input but - Wow! That is very complicated. I don't have the patience to work that out, it seems like my screenshot should work based on the instructions.

@S0Fr33 if you sort by folder are there any from the inbox? 

@Diane Poremsky I don't see the option to sort by folder:

 

S0Fr33_0-1597847315330.png

 

Best Response confirmed by S0Fr33 (Occasional Contributor)
Solution

@S0Fr33 Are you in search results - either search folder or instant search? 

 

 

2020-08-19_10-41-05-0000.png

@Diane Poremsky OK, I did navigate to the search folder and sorted by folder and - (gulp) the Inbox was there! I don't know, but it's working. Thanks for your help!