---
title: "Comment by Gonzalo Ferrantelli on \"APEX & Office 365 Email Integration\" | Hashnode"
description: "Hi Jon, this post, and the previus ones, are amazing. I need to do exactly the same you explained here but I need to download the attachment files into the file"
url: "https://hashnode.com/posts/apex-office-365-email-integration/633edbab9554e65844b88619/comment/6351e7edeb49c7b94b2f279b"
---

[Discussion](https://hashnode.com/posts/apex-office-365-email-integration/633edbab9554e65844b88619)

Comment [APEX & Office 365 Email Integration](https://hashnode.com/posts/apex-office-365-email-integration/633edbab9554e65844b88619)

[Gonzalo Ferrantelli](https://hashnode.com/@gferrantelli)

[Oct 21, 2022](https://hashnode.com/posts/apex-office-365-email-integration/633edbab9554e65844b88619/comment/6351e7edeb49c7b94b2f279b)

Hi Jon, this post, and the previus ones, are amazing. I need to do exactly the same you explained here but I need to download the attachment files into the filesystem and not into the database. Can you give me some advise how to do it? Also I need to download only the unread emails from the mailbox. Which parameters do I need to set to avoid to read the same emails over and over again? Thank you very much.
