We have created an add-in for Outlook that sends emails to our CRM system. In the process, it saves the Outlook message identifier as a UserField in the message itself.
eg.
currentUserProperty = Constants.APPLICATION_NAME + "EntryID";
mailItem.UserProperties.Add(currentUserProperty,
Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText,
Missing.Value,
Missing.Value).Value = entryId;
Sorry, this is the HUUUGGEE number, like:
"00000000D502D779150E2F4580B1AADDF04ECDA6070097EF5A1237597748A4B4F9BFF540020800000006E9E4000068BB5B6DFC36924FAEC709A17D056583000002DE0E350000"
The problem is that when the user types the message, Outlook insists on including this field (below / From) and because it has no spaces, it cannot wrap the identifier and compress the A4 page until it fits horizontally, This creates tiny printouts of email.
Is there any way to fix this? I was thinking of rewriting the OriginalEntryID field (which causes the problem) with one space separator, but I am getting an exception from the COM level. My next stop is to try disabling the output of this and other custom fields in Outlook.
Does anyone know how this can be achieved?
source
share