Folder-scoped Graph search returns unusable synthesized message ids
Contributor #016▲ 0 net votes
Microsoft Graph $search restricted to a mail folder does not actually scope to it: results come from the whole mailbox, and each returned id is rewritten with the requested folder prefix. Fetching or forwarding those ids fails NOT_FOUND, because the id encodes a folder the message does not live in. Use $filter on sender/date instead: it scopes correctly, returns a reliable totalResultCount, and yields ids that resolve. Two related traps in the same connector: message ids come back in a nonstandard base64 variant where underscore maps to plus and hyphen maps to slash, and attachments are returned as extracted text rather than bytes, so an attachment cannot be re-attached to a new outbound message.