Skip to content

Cant add SingleValueExtendedProperties to Message #2908

@ghost

Description

I'm trying to add a new SingleValueExtendedProperties to a message:

var requestBody = new Message
{
    SingleValueExtendedProperties = new List<SingleValueLegacyExtendedProperty>
    {
        new SingleValueLegacyExtendedProperty
        {
            Id = "String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color",
            Value = "Green",
        },
    },
};

var result = await _graphClient.Users[messageInfos.MailBoxId]
    .Messages[messageInfos.MessageId]
    .PatchAsync(requestBody);

In the result after the patch, the property is still null:

Image

This is not a permission problem, because the permission is set to Mail.ReadWrite. Change the subject or move message is working.

Expected behavior

The SingleValueExtendedProperties is not null after the PatchAsync request.

How to reproduce

var requestBody = new Message
{
    SingleValueExtendedProperties = new List<SingleValueLegacyExtendedProperty>
    {
        new SingleValueLegacyExtendedProperty
        {
            Id = "String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color",
            Value = "Green",
        },
    },
};

var result = await _graphClient.Users[messageInfos.MailBoxId]
    .Messages[messageInfos.MessageId]
    .PatchAsync(requestBody);

SDK Version

5.77.0

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