Slackbot
08/30/2022, 6:12 PMbdw429s
08/30/2022, 6:17 PMbdw429s
08/30/2022, 6:18 PMDani Szwarc
08/30/2022, 6:19 PMbdw429s
08/30/2022, 6:19 PMbdw429s
08/30/2022, 6:19 PMDani Szwarc
08/30/2022, 6:20 PMbdw429s
08/30/2022, 6:20 PMbdw429s
08/30/2022, 6:21 PMbdw429s
08/30/2022, 6:21 PMDani Szwarc
08/30/2022, 6:22 PMDani Szwarc
08/30/2022, 6:22 PMbdw429s
08/30/2022, 6:22 PMDani Szwarc
08/30/2022, 6:23 PMbdw429s
08/30/2022, 6:23 PMDani Szwarc
08/30/2022, 6:23 PMbdw429s
08/30/2022, 6:23 PMbdw429s
08/30/2022, 6:24 PMDani Szwarc
08/30/2022, 6:24 PMbdw429s
08/30/2022, 6:24 PMbdw429s
08/30/2022, 6:24 PMDani Szwarc
08/30/2022, 6:25 PMbdw429s
08/30/2022, 6:26 PMbdw429s
08/30/2022, 6:27 PMbdw429s
08/30/2022, 6:29 PMGET /me/mailFolders/{id}/messages/{id}/attachments/{id}
and
GET /me/mailFolders/{id}/messages/{id}/attachments/{id}/$value
but slapping those into Postman seems like a good place to startbdw429s
08/30/2022, 6:29 PMDani Szwarc
08/30/2022, 6:29 PMDani Szwarc
08/30/2022, 6:30 PMbdw429s
08/30/2022, 6:30 PMthere is no information on how to download the attachmentNot sure what you mean-- I've already found the information in the docs on how to download an attachment after just a couple minutes of skimming the docs. Did you look there at all?
Dani Szwarc
08/30/2022, 6:31 PMbdw429s
08/30/2022, 6:32 PMbdw429s
08/30/2022, 6:33 PMDani Szwarc
08/30/2022, 6:36 PMbdw429s
08/30/2022, 6:42 PMfile
attribute of the cfhttp
tag to download the file. You may need to use getasbinary
depending on the file typeAdam Cameron
Adam Cameron
Dani Szwarc
08/30/2022, 6:48 PMAdam Cameron
bdw429s
08/30/2022, 7:05 PMDani Szwarc
08/30/2022, 7:37 PMgavinbaumanis
08/31/2022, 12:08 AMleftbower
08/31/2022, 12:11 AMDani Szwarc
08/31/2022, 12:07 PMleftbower
09/01/2022, 12:32 AMfilter
that array so I'm left with only those with attachments, then for each
one of those messages I get the list of attachments. And then for each
attachment I get it as raw
and then use fileWrite
to save it to disk as an Excel file.Dani Szwarc
09/01/2022, 1:02 AMbdw429s
10/21/2022, 8:56 PMbdw429s
10/21/2022, 8:57 PM<https://graph.microsoft.com/v1.0/users/><username>/messages/<message id>/attachments
endpoint which contains the base64 encoded binary of the attachments right there in the REST response.