Connectors
...
Actions
Get Email Attachments
5 min
description retrieve all attachments from a specified email in microsoft graph api using the provided email address and email id endpoint url /v1 0/users/{{email address}}/messages/{{email id}}/attachments method get inputs path parameters (object) – required path parameters email address (string) – required the account associated with the email email id (string) – required the id of the email to retrieve attachments from parameters (object) $expand (string) to get the properties of an item attachment (contact, event, or message) remove content bytes (boolean) the account associated with the email output example \[ { "status code" 200, "response headers" { "cache control" "private", "transfer encoding" "chunked", "content type" "application/json; odata metadata=minimal; odata streaming=true; ieee754compatible=false; charset=utf 8", "content encoding" "gzip", "vary" "accept encoding", "strict transport security" "max age=31536000", "request id" "d11c96e4 5b4d 4a7f 92ce 8d9cf5684d80", "client request id" "d11c96e4 5b4d 4a7f 92ce 8d9cf5684d80", "x ms ags diagnostic" "{\\"serverinfo\\" {\\"datacenter\\" \\"central us\\",\\"slice\\" \\"e\\",\\"ring\\" \\"2\\",\\"scaleunit\\" \\"001\\",\\"roleinstance\\" \\"ds2pepf00001339\\"}}", "date" "tue, 08 nov 2022 01 06 18 gmt" }, "reason" "ok", "json body" { "@odata context" "https //graph microsoft com/v1 0/$metadata#users('integrations%40swimlaneintegrations onmicrosoft com')/messages('aamkadmxzmu3zwq4ltmzngitngy3zc1im2uxlwm3mdqzogvjmzlknwbgaaaaaaahypwuvwmwsrfeylv6xhmzbwcbjrt9 oidtlplg45rvpkcaaaaaaejaacbjrt9 oidtlplg45rvpkcaaezlddcaaa%3d')/attachments", "value" \[ { "@odata type" "#microsoft graph fileattachment", "@odata mediacontenttype" "image/png", "id" "aamkadmxzmu3zwq4ltmzngitngy3zc1im2uxlwm3mdqzogvjmzlknwbgaaaaaaahypwuvwmwsrfeylv6xhmzbwcbjrt9 oidtlplg45rvpkcaaaaaaejaacbjrt9 oidtlplg45rvpkcaaezlddcaaabegaqah0jgrumhqdeq kvrgjt3su=", "lastmodifieddatetime" "2022 05 11t04 55 25z", "name" "test file png", "contenttype" "image/png", "size" 1569, "isinline" false, "contentid" null, "contentlocation" null } ] }, "attachments" \[ \[ { "file name" "test file png", "file" "d9196813 5631 4bbd a1e3 6bf30cb1cd0b" } ] ] } ] output parameters status code (number) reason (string) json body (object) @odata context (string) value (array) @odata type (string) @odata mediacontenttype (string) id (string) lastmodifieddatetime (string) name (string) contenttype (string) size (number) isinline (boolean) contentid (object) contentlocation (object) attachments (array) 0 (object) file name (string) file (string) response headers header type cache control string transfer encoding string content type string content encoding string vary string strict transport security string request id string client request id string x ms ags diagnostic string date string