Determine is Outlook.MailItem is created from OFT file

Add-in Express™ Support Service
That's what is more important than anything else

Determine is Outlook.MailItem is created from OFT file
 
Jeremy Bean




Posts: 8
Joined: 2019-03-18
I'm trying to have logic that works differently when a user opens an OFT file than when they open a MSG file. I can't seem to find a way to determine filetype that created the MailItem (or inspectors).

Is there any way to determine this?

Thanks,
Jeremy
Posted 15 May, 2019 07:06:42 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Jeremy,

I suppose this cannot be solved in the generic case: I don't see anything in properties of a mailitem created via Application.CreateItemFromTemplate("C:\Users\{user profile}\AppData\Roaming\Microsoft\Templates\MyTestOFT.oft"). Can you add something to the OFT so that your code could recognize it?


Andrei Smolin
Add-in Express Team Leader
Posted 15 May, 2019 09:15:07 Top
Jeremy Bean




Posts: 8
Joined: 2019-03-18
Andrei,

Thanks for the reply, sorry for the delay in response. We will not have control over these OFTs so we'll have to come up with a different approach.

Thanks again,
Jeremy
Posted 25 Jun, 2019 09:50:43 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
No problem.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Jun, 2019 07:04:24 Top