Tool to add an attachment to an email message. Use when you have a message ID and need to attach a small (<3 MB) file or reference.
itemobjectEmbedded item (e.g., message, event) for itemAttachment; must include its own '@odata.type'.
namestringDisplay name of the attachment (e.g., file name). Required when using content_bytes. When using the attachment field, the name is automatically inferred.
user_idstringThe user's principal name or 'me' for the authenticated user.
isInlinebooleanSet to true if the attachment should appear inline in the message body.
contentIdstringContent ID for inline attachments, used in HTML body references.
attachmentobjectFile to attach to the email. Either provide this field OR use 'content_bytes'. Cannot be used together with 'content_bytes'.
message_idRequiredstringUnique Microsoft Graph message ID (opaque string like 'AAMkAGI2TAAA='). NOT an email address - this is an internal identifier returned by Microsoft Graph API operations.
odata_typestringThe OData type of the attachment. Required by Microsoft Graph API. Use '#microsoft.graph.fileAttachment' for file attachments, '#microsoft.graph.itemAttachment' for embedded items (messages, events, contacts).
contentTypestringMIME type of the attachment (e.g., 'application/pdf'). Required when using content_bytes. When using the attachment field, the mimetype is automatically inferred.
contentBytesstringBase64-encoded content of the file attachment (max size 3 MB). Either provide this field OR use the 'attachment' field (recommended). Cannot be used together with 'attachment'.
contentLocationstringURL location or path for reference attachments.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.