Hi All -
I am struggling with the very last action in a set of macros I'm writing. Below is the full code. This is all written in ThisOutlookSession. There is something I don't understand about the .Send method, and after spending several hours looking at forums and reading Microsoft's documentation, I can't figure it out. Any help (including references to some other documentation I might not have found) would be greatly appreciated.
Intent: this code is supposed to watch for things that get created (either by me, or by receiving an invitation) on my main work calendar and, if they meet a set of conditions (e.g. being at 8pm local time) copy it over to a secondary calendar, turn it into a meeting item by adding (my own) gmail address as a recipient, and then send it. This is important because I don't want everyone who sends me a meeting invite to get a forward notification every time I need to keep track of that particular meeting on my personal calendar as well as my work (outlook) one.
Currently, I do this manually by looking at each item, and then copy/pasting over to the sync calendar, and then clicking the "Forward" button in the ribbon, typing my own email address, and hitting send. I am fairly certain that Outlook code should be able to replace that set of actions! As of right now, the code runs all the way through with no issues, and the AppointmentItem in the newCalFolder shows the correct email address as a meeting attendee, but that email address never receives the event. If I open the macro-created-meeting in the newCalFolder and click forward and add the same email address again and click send, it works.
What am I missing?
Thanks in advance!