For item attachments that represent a contact (.vcf), will there be a corresponding MailboxEnums.AttachmentContentFormat - outlook-addin

Per the docs, there are enums for .eml and .iCalendar item attachments. Will there be an enum for contact item attachments.
https://learn.microsoft.com/en-us/javascript/api/outlook/office.attachmentcontent?view=office-js#content
Right now, item attachments that represent contacts have an .iCalendar enum.

Related

How to display in Outlook, using VBA, a list of emails based on their EntryID (based on a list of EntryIDs stored in MS Access)

I have an Access DB that interacts with Outlook, including capturing the EntryID of selected emails as needed (which are stored in a table in Access)
I have code that allows users to view any email whose EntryID is stored, using Outlook's GetItemFromID method. This works as needed - it opens up a single email based on its EntryID.
However, what I am now looking to do is to filter the main Outlook window, to show emails based on a list of EntryIDs I have saved. So, for clarification, if I have a list of eg 3 emails (with their respective EntryIDs), the main Outlook window would be filtered to show those 3 emails. So basically like a search, but based on EntryIDs.
I can't seem to find anyway to do this? Perhaps there is a way to add a search filter via VBA that will search based on EntryIDs, but I can't find anything on this.
Any ideas much appreciated.
Binary properties like EntryID can't be used in any search or filtering operation in Outlook. You need to use any other properties (custom or user-defined ones) for filtering items in Outlook.
The View.Filter property value is a string, in DAV Searching and Locating (DASL) syntax, that represents the current filter for the view. For more information about using DASL syntax to filter items in a view, see Filtering Items.
Private Sub FilterViewToLastWeek()
Dim objView As View
' Obtain a View object reference to the current view.
Set objView = Application.ActiveExplorer.CurrentView
' Set a DASL filter string, using a DASL macro, to show
' only those items that were received last week.
objView.Filter = "%lastweek(""urn:schemas:httpmail:datereceived"")%"
' Save and apply the view.
objView.Save
objView.Apply
End Sub
Be aware, the EntryID value can be changed when items are moved between stores or folders. Moreover, the value is unique only per store.
If you need to show some items with specific EntryIDs strings you can get these item instances by using the GetItemFromID method and then marking them with a specific user property to be able to apply a filter for it. Or just add another string field to the Db with a custom value which can be added to items in Outlook, so you could easily apply a filter in the UI.

Limit attendees for an Outlook e-invite

I am an amateur coder.
I need to limit an e-invite in Microsoft Outlook to a certain number of attendees.
E.g. I have 500 attendees and I want to limit registration via calendar e-invite acceptance from the 11th attendee onwards ( first come first serve basis for first 10 who signs up).
How can I do that?
Thanks!
The best what could do is to handle the NewMailEx event of the Application class which is fired once for every received item that is processed by Microsoft Outlook. The item can be one of several different item types, for example, MailItem, MeetingItem, or SharingItem. The EntryIDsCollection string contains the Entry ID that corresponds to that item. The NewMailEx event fires when a new message arrives in the Inbox and before client rule processing occurs. You can use the Entry ID returned in the EntryIDCollection array to call the NameSpace.GetItemFromID method and process the item.
So, you can track how many answers were received and modify the original appointment item to include only ten attendees.

Copy all email address from continuous form into Outlook email To Line

I have a continuous form in an Access Database that lists each employee assigned to a job and their email address.
I need to insert each email address into the To line in an Outlook email message.
You would need to perform the following operations in VBA in MS Access:
Open a recordset of the query/table constituting the record source of your form - you can do this using the recordsetclone method of the form.
Iterate over the recordset and construct a semi-colon delimited string using the value held by the email address field. Use the constructed string to populate the To field of the email.
Alternatively, use the Add method of the Recipients property of the Mail Item to add each recipient as you iterate over the recordset.

SharePoint 2010 SPD Workflow copy list item to new list and designate the content type

I have a functioning SPD workflow that copies the list item from list A to list B when the item in list A is marked approved.
My challenge is that list B has three content types to chose from. How do I designate which content type in list B to use when copying. I have a listbox that the user gets to choose what kind of a tool is being loaded. Some tools have required calibration dates and other tool specific items therefore the different content types.
I don't think you can specify the content type with Copy List Item - it should default to the default content type.
What I'd do instead is have my workflow Create List Item in List B, populating fields with values from Current Item. You can set Content Type ID by this process but it doesn't accept a variable, so use an If/Then block for each Tool type that only runs if that listbox value is selected.
Hope this helps!

IN VBA is it possible to get the recall message target?

Using the mail object properties I can get information about a recall message, but I don't know how to grab the information about the message it is going to remove.
The body gives the subject, but the emails being recalled in my case are not unique in sender nor in subject and so a combination of values for the target message are needed to unique them.
Thanks for your help and time,
Outis
Outlook uses EntryID property values to identify their items uniquely. Here is what MSDN states:
A MAPI store provider assigns a unique ID string when an item is created in its store. Therefore, the EntryID property is not set for an Outlook item until it is saved or sent. The Entry ID changes when an item is moved into another store, for example, from your Inbox to a Microsoft Exchange Server public folder, or from one Personal Folders (.pst) file to another .pst file. Solutions should not depend on the EntryID property to be unique unless items will not be moved.
Also you may consider adding your own ID as a user property.