How enable Reply button after adding Voting buttons

Michal Kuracina 0 Reputation points
2023-08-31T11:35:33.2333333+00:00

This code below enables Voting button in my emails (works fine), but emails have Reply, Reply All and Forward greyed out (screenshot below)

public static void AddVotingButton(string mailBox, string messageID, string voteOptions)
{             
	Microsoft.Graph.Message message = new Microsoft.Graph.Message(); 
    SingleValueLegacyExtendedProperty property = new SingleValueLegacyExtendedProperty();
    property.Id = "Binary {00062008-0000-0000-C000-000000000046} Id 0x00008520";             
	property.Value = VotingButtonEncoder.CreateVoteButtonsBase64String(voteOptions.Split(';'));  
	IMessageSingleValueExtendedPropertiesCollectionPage SingleValueExtendedProperties = new MessageSingleValueExtendedPropertiesCollectionPage();             
	SingleValueExtendedProperties.Add(property);
              
	message.SingleValueExtendedProperties = SingleValueExtendedProperties;
	GraphClient.Users[mailBox].Messages[messageID]                 
	.Request()                 
	.UpdateAsync(message).GetAwaiter().GetResult();         
}

2023-08-31 13_28_05-Start

I suspect that this must be set again (?) https://learn.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagsensitivity-canonical-property

But it does nothing :(

Any ideas what is the name of the email property?

Microsoft 365 and Office | Development | Other
Developer technologies | .NET | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.