Finding Where Previous Email In Conversation Is Stored in a Shared Inbox - vba

When receiving a reply to an email that has already been in a shared inbox, I want to store it to the same folder as the previous email.
Came as far as understanding Conversation ID buildup, but couldn't find how to read the properties of the previous conversation.

The Outlook object model provides the GetConversation method which obtains a Conversation object that represents the conversation to which this item belongs. GetConversation returns Null (Nothing in Visual Basic) if no conversation exists for the item. No conversation exists for an item in the following scenarios:
The item has not been saved. An item can be saved programmatically, by user action, or by auto-save.
For an item that can be sent (for example, a mail item, appointment item, or contact item), the item has not been sent.
Conversations have been disabled through the Windows registry.
The store does not support Conversation view (for example, Outlook is running in classic online mode against a version of Microsoft Exchange earlier than Microsoft Exchange Server 2010). Use the IsConversationEnabled property of the Store object to determine whether the store supports Conversation view.
I guess the GetConversation doesn't work for shared accounts , see a similar thread for more information.

Related

Outlook 2021, how to write a trigger that change "From" field for speciffic account on every "Create Mail", "Reply", "Forward" event

In Outlook 20xx there is no way to change From field automatically. There are ways to have multiple accounts and use a default one all the time, but not when you reply. This is anti-feature by design and I'm forced to use Outlook with Exchage server using user emails (so every user has his own storage) but sending as office accounts (and when recieving email a copy is forwarded to users which are in office group) [eg. robert#company.com is real account, but when sending/reply/forward it should be sales#company.com]. There are many examples on using macros for all sort of things but not this one.
I need 3 triggers that change From field without clicking some special custom button
when I click New Email
when I click Reply on some selected email
when I click Forward on some selected email
thnx.
added exchange user account, then added exchange office account, set office account as default, options -> mail -> send messages -> always use default account when composing new messages
This was the nearest goal but worked only for new messages, on reply it allways default to user account.
The email profiles are Exchange profiles/accounts and have the required permissions to send on behalf of another person (eg. office#company.com)

Office.js item saveAsync doesn't save all fields on new appointment

I am using Office.context.mailbox.item.saveAsync in an Outlook add-in to save a new appointment. The returned item id is used to fetch the appointment using the REST api (a get request to Office.context.mailbox.restUrl + '/v2.0/me/events/' + itemId). This returns an appointment where Start, End, and Organizer is set correctly, but the Subject, Body, Location, Recurrence, Attendees is not set.
Does saveAsync not save all fields on the appointment?
I am using the REST api because the Recurrence field is not available through the Office.context.mailbox.item in older versions of the Outlook JavaScript API.
This scenario occurs when calling Office.context.mailbox.item.saveAsync on a new Calendar item that has not been sent yet. This has been fixed in the new Outlook Web beta. The API should behave as designed in Mail and on Existing Calendar items. Note that for existing Calendar items, an update may be sent out to attendees depending on the changes that the user or the add-in made in the compose form.

sharepoint registration change notification

I have a class registration set up in SharePoint 2013. Users are emailed when they register for a class. I want to create email notifications when the Start Date, Start Time or Location [fields] of the Session changes. I only want to email the users that have registered for said Session (between 1 and 400 people).
I should be able to handle this with an Alert or an Event, but can't figure it out. My SharePoint team is telling me that this is too difficult because "the columns are in Sessions [list] and not in Registrations [list view].
I've found a lot of information on general SharePoint alerts, but I can't find anything on sending notifications to a select group of users, based on another field.
You could create event receiver for the list and send email by SPUtility.SendEmail with dynamic users.
You could check sample code from here.
Create event receiver in SharePoint 2013.

Identify parent message Id in outlook reply mail mode

i am making a js outlook addin. Here I want to get the parent message id, if user trying to reply mail.
When user opens reply mail in compose mode, i want to extract parent message Id and do some analytics.
How can we achieve this?
You can use EWS for getting the job done. You can navigate through the conversation and find the latest one. See How to: Get conversation items by using the EWS Managed API 2.0 for more information.

Cancellation of Outlook AppointmentItems

I have a strange issue regarding the cancellation of an Appointment/Meeting in a C# Add-In. Of course it is possible that I do not handle the events correctly. This is how I do it:
Register Event BeforeDelete on AppointmentItem which may have 0 to n recipients
My goal is to handle the deletion of an AppointmentItem with and without a cancellation message:
No recipients: ask for confirmation before deleting in BeforeDelete. After Outlook has left the BeforeDelete event handler, the item will be deleted from the calendar. I use Cancel = true to prevent a deletion, if the user declines the confirmation.
1 to N recipients: Outlook will enter the BeforeDeletion as usual. The main difference is now that there won't be a deletion but the Inspector opens ready for you to send the cancellation message to the recipients. In this case I want to ask the user for confirmation after he clicks on "Send Cancellation".
Problem: How do I differentiate between meetings with no recipients which get deleted directly and those who need a cancellation message to be sent?
Here the strange issue: When I create an AppointmentItem with 1 recipient, I already have different behaviors on different Outlook installations (both 2010, one with a Gmail account the other one is connected to a company Exchange Server): The Outlook with the Gmail account tells me that AppointmentItem.Recipients.Count is 1, the Outlook with the Exchange Server tells me there are 2 recipients (including myself!). Why is that??