Problems reading multiple folders in a mailbox

Good I have a problem with the list of my folders in the mail, I have about 100 folders and subfolders to derive the mails.

The problem is that in the node mo “move message” in the section “From list” I only list 50, is there any solution to list all the folders I have?

This is the node:

Hey @Angel_Cutillas_Perez hope all is well.

What if you start typing the name of the folder you are looking for in the search field? Would it come up?

Hi @jabbson ,

No, I tried to do it but it doesn’t detect the folders I need either.

Best regards.

That seems odd - looking at the code the resource locator here should do a paginated request on the backend so all the folders should be found, but perhaps something is broken there :thinking:

As a workaround if you’re trying to use some specific folder that you can’t find from the list you could try the “Link” or “ID” modes, but that isn’t ideal of course.

Good morning @Jaakko ,

Yes, it seems a bit strange to us. From what I was reading the Outlook API only reads a series of data as maximum that is what it is getting, I do not know if this is true?

On the other hand if I want to find the solution to list it through “Link” or “ID” how should I do it? What would be the node to use?

Thank you very much for your help and best regards.

I’m experiencing the same issue — it only returns a limited number of folders.

After checking the code, it looks like the response for Outlook folders isn’t being paginated. The implementation uses microsoftApiRequest instead of microsoftApiRequestAllItems, which might be the reason only a subset of folders is returned.

I’m not fully familiar with the codebase or the Microsoft API, but this might be a helpful lead for further investigation. Please see my comment in Outlook Trigger: “Folders to Include” missing folders in dropdown · Issue #17078 · n8n-io/n8n · GitHub

Hello Jaakko,

Have you had a chance to look into this issue again? It seems the user above had some additional questions, and I am experiencing the same problem. Please see my comment above for more details.

Kindly asking for an update on this.

Also encountering this issue - any progress?