Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Get attachment content is not implemented #92

Copy link
Copy link
@Renji-FR

Description

@Renji-FR
Issue body actions

Hi,

The Graph API documentation describe how to retrieve attachment content from the API:

https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http

GET /me/messages/{id}/attachments/{id}
GET /users/{id | userPrincipalName}/messages/{id}/attachments/{id}

GET /me/messages/{id}/attachments/{id}/$value
GET /users/{id | userPrincipalName}/messages/{id}/attachments/{id}/$value

One example: https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http#example-8-get-the-mime-raw-contents-of-an-event-attachment-on-a-message

GET https://graph.microsoft.com/v1.0/me/messages/AAMkADVIOAAA=/attachments/AAMkADVIOAAABEgAQACvkutl6c4FMifPyS6NvXsM=/$value

The issue is $value seems not to be implemented.

class AttachmentItemRequestBuilderGetQueryParameters
        """
        The fileAttachment and itemAttachment attachments for the message.
        """
        # Expand related entities
        expand: Optional[List[str]] = None

        # Select properties to be returned
        select: Optional[List[str]] = None

The class AttachmentItemRequestBuilderGetQueryParameters does not contain value : Optional[bool] = None

So it is not possible to use $value like described in https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#other-odata-url-capabilities

$value	Retrieves or updates the binary value of an item.	GET /me/photo/$value

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.