Exchange 2016, Outlook 2016+, O365
I have been using a custom Outlook 'Organisational' form for last 15years that adds a UserProperty 'ProjFile' to an outgoing email via VBS, and BCC's it to a mail-enabled public folder (ProjFiling).
An separate app then polls the public folder for items, reads the 'ProjFile' property and moves that email to a relevant public folder.
set objRecip= ThisEmail.Recipients.Add("ProjFiling@ourdomain.com.au")
objRecip.Type=3
objRecip.Resolve
ThisEmail.UserProperties("ProjFile") = sProjId & "-" & sFileAs
All user mailboxes have recently been transitioned to Exchange Online, with the PF mailboxes (320Gb) still on-premises so we can use Sharepoint & Teams more effectively.
BUT. the userproperty is not being saved on the copy of the email within the ProjFiling PF, but it does remain when email is received by an internal Outlook user. (it displays on the Organisational Form);
so outgoing emails are not able to be filed without user action.
I suspect the problem is caused by ExchangeOnline removing all the properties when sending the the PF mailbox onprem.
Looking for ideas or settings to reinstate situation.
'something with the Exchange Transport serviceI agree that it sounds like properties are being dropped during the Send operation, rather than in the receive operation.
But a few words of warning,
My first suggestion is to test that your tgtFolder is capable of creating a message with a user defined field.
- Select tgtFolder > Ribbon > Current View > View Settings>Columns>New Column.> name = “MyProp”, format = Test > OK > Click “Move Up” 10 times to get MuProp to the top >OK > OK
Afterwards your email list should look like this.The next step (Step 6 in the slipstick webpage) probably won’t work for public folders.
View Settings > Other Settings > turn on “Allow in cell Editing” > OK
Details are in https://www.slipstick.com/tutorial/create-a-custom-field-to-mark-messages/
For your convenience I have put a portion of the slipstick webpage here.
If the above yields a public folder that looks like this, you can continue to the rest of my post, Otherwise post back to tell me what went wrong.
If your public folder looks like the above, I believe you will be able to copy emails successfully.
but, if the userproperties are still being dropped, do not despair. Post back your problems and there are other slightly more complicated things to try.