I had the opposite experience. Gemini was able to work with COM and accomplish what I needed despite me never using COM before.

I've done a lot of work with COM over the years and that is the last technology I would trust to an AI. It's very easy to write COM code that appears to work but contains subtle bugs.

That was my issue. Integration works, Outlook itself not so much, afterwards. (I.e. memory error.)

Actually hadn’t tried Gemini with it yet. Perhaps worth taking a look.