.NET
Microsoft Technologies based on the .NET software framework.
2,016 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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();
}
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?