Okay, reproduced similar - let me confirm what’s going on and circle back.
So this statement needs clarification: Returns threads with messages that belong to the specified folder. This parameter supports filtering by folder ID
@VictorMonteiro7 “Label_7” is an internal Id, that’s why it’s not working, you need to use the folder name which is “Test Folder Nylas Forum” I just test it on Ruby
Hey @Blag, so I think it should change in the docs, because it says: “Returns threads with messages that belong to the specified folder. This parameter supports filtering by folder ID.”.
Anyway, I test locally and works with name (as you said), but It works only with gmail, because the id and name of gmail folders are equals, while others providers the id is a unique generated string.
@Blag You’re right, but I expressed myself badly.
When I said “because the id and name of gmail folders are equals”, I was referring to the others folders. Example: in Gmail, inbox folder has id and name as INBOX, but in outlook has id as a unique generated string and the name as inbox.
So, if I change all my methods to fetch the threads by the name, I will have some problems.
@Blag I did it, hehe. But, I made some tests and the right way is to fetch the threads using the id. Fetching with name most of the time returns an empty array.