livelink mapi outlook objId - vba

I am searching for a way to get the livelink objId from a MAPIFolder object (Outlook VBA).
I can get the path but its useless when the MAPI comes from favorites.
I look at this Is there a list of IDs for the Outlook MAPI namespace? but that's not really helping.
I searched in each variable of MAPIFolder, looked at xml values, and I don't know what to do, where else to look.
(Are there any livelink/Outlook developers?)

I don't have any direct experience with automating LiveLink's Outlook Integration, but if their solution is MAPI Message Store Based (like our competing DMS integration product), your best bet would be to install OutlookSpy and look for a named property containing the livelink ID.
There doesn't have to be one, but it is the most straightforward approach to support third party automation/integration.

Related

Copy one account client-side rule to all client-side rules

Is there any way to copy the outlook rule of one account to another account using VBA code. I have researched on the internet I have not found anything related to my question, Pls help me. I will be very thankful to you.
The Outlook object model doesn't provide any property or method for that. However, you can use a low-level functionality to access rules. Use the PropertyAccessor object to get and set item-level properties that are not explicitly exposed in the Outlook object model, or properties for the following non-item objects: AddressEntry, AddressList, Attachment, ExchangeDistributionList, ExchangeUser, Folder, Recipient, and Store.
Rules are kept as hidden items in your Inbox folder (see the associated content which is not visible in the Outlook UI). You may use MFCMAPI or OutlookSpy for exploring the hidden content.

C# Add-In (VSTO .NET): Add domain name to outlook junk-email list

With the Outlook UI you can add an email address to your junk-email list, you can add a domain name as trusted domain, but you can't add a domain name to your junk-email list. You must manually edit the email address in your junk-email list to achieve that, so I wrote an Add-In to do this for me, but cant find the method to do that. Apparently the Outlook object model doesn't provide anything for that.
Is there a code workaround for this fatal limitation?
That is correct. Outlook Object Model does not provide any means to access or manipulate Junk Email settings.
You can try to use Extended MAPI (C++ or Delphi) to build the MAPI server side rule that lists all the blocked senders, but it is definitely not for the faint-hearted.
If using Redemption (I am its author) is an option, it exposes RDOJunkEmailOptions object (returned from RDOSession.JunkEmailOptions, RDOAccount.JunkEmailOptions, RDOExchangeMailboxStore.JunkEmailOptions), which allow to add blocked senders using RDOJunkEmailOptions.BlockedSenders.Add.

Outlook 2013, Outlook 2016 VBA rearrange folders in folders tree

In Outlook versions after 2007 Microsoft added the possibility to manually arrange folders in folders tree (in Outlook 2007 folders were arranged alphabetically).
Is there any possibility using VBA to arrange folders in the folders tree, e.g. put folder to the top when it contains new email?
Thanks
Starting from Outlook 2013 you can reorder folders however you like and Outlook would remember the order. The key property is PR_SORT_POSITION. Here’s the definition:
define PR_SORT_POSITION PROP_TAG( PT_BINARY, 0x3020)
Outlook will use this property as part of it’s sort order when requesting folders from a provider, so it’s important that your provider can handle sorting on a binary property – or can fake it when asked to sort by this property. Outlook will also use this property directly when deciding where to insert nodes in the visible tree, so it’s also important that your provider can return this property when Outlook looks for it on a folder.
There’s a second property Outlook will use for custom sort ordering:
define PR_SORT_PARENTID PROP_TAG( PT_BINARY, 0x3021)
As the name suggests, this property stores an entry ID which can be used to sort a folder under a different node than it’s natural parent. Normally, a folder will be sorted under the folder represented by PR_PARENT_ENTRYID. This property allows you to suggest a different parent for display.
By presetting these properties appropriately, you can direct Outlook in how you wish your provider’s folders to be sorted. And if you allow Outlook to write to these properties, you can preserve whatever sort order your users desire.
So, theoretically you can set these properties from VBA. The PropertyAccessor class can help you with such tasks. Also you may consider using a low-level code if you face with any restrictions from OOM, so any wrappers around Extended MAPI allows to bridge the gap (for example, Redemption).

VBA Outlook - Get "last modified by" using MAPI

I am using MAPI to get details of email into my database. Now it seems that outlook captures Last Modified time. But I am not able to find any helpful articles on how to capture the "last modified by" in outlook.
I need to know how I can achieve this using VBA Outlook with MAPI or if there is any other way of getting this done.
Extended MAPI can only be used from C++ or Delphi. There is no way you can do that from VBA.
Why do you need to use MAPI? Have you looked into using the Outlook Object Model and the MailItem.LastModificationTime property in particular?

MS Outlook MailItem as MIME message

I have been looking for some time for a way to get an Outlook MailItem as a MIME-Message, but without much luck so far.
What I found is this here: http://www.office-outlook.com/outlook-forum/index.php/m/600993/, which would mean that I would either have to use a third party library or get into Extended MAPI.
Is there no other way to get a complete MailItem as MIME in Outlook 2007 with VBA?
Yes, it is either Extended MAPI (IConverterSession) or Redemption (RDOMail/SafeMailItem.SaveAs).
You can of course explicitly built the MIME message in your code one property at a time...