Skip to content

IsInline filter parameter not working when retrieving email attachments via Graph SDK #2938

@GregoryJord

Description

@GregoryJord

Describe the bug

When using the Graph SDK to filter email attachments by the IsInline property, the filter does not function correctly. Attempting to use filter expressions like IsInline eq true or IsInline eq false through the SDK's filter methods returns all attachments regardless of the filter criteria, making it impossible to distinguish between inline images (embedded in email body) and regular file attachments using the SDK's filtering capabilities.

Expected behavior

Using SDK filter for IsInline eq true should return only inline attachments (embedded images, signatures, etc.)
Using SDK filter for IsInline eq false should return only regular file attachments (PDFs, documents, etc.)
Using SDK filter for IsInline ne true should exclude inline attachments and return only regular attachments
The SDK's filter functionality should properly apply the IsInline filter to differentiate between attachment types

How to reproduce

Create an email draft with both inline images (in signature) and regular file attachments (PDF, documents)
Use Graph SDK to retrieve attachments with filter parameter set to IsInline eq true
Observe that all attachments are returned instead of just inline ones
Use Graph SDK to retrieve attachments with filter parameter set to IsInline eq false
Observe that all attachments are still returned instead of filtering out inline images
Verify that the IsInline property exists in the SDK response objects but the filter is not being applied correctly by the SDK

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions