Import ms outlook object library in invoke code




I’m trying to build an invoke code activity to create an email in Outlook with some specific parameters that are not possible with the dedicated send activity (see previous post there : Send Outlook email, one account but additional mailboxes)

The problem is that I’m 100% new at (I know quite a bit of VBA including some Outlook activities) so I’m relying heavily on code found online and I try to re-arrange it.

The first struggle is that I have no idea how to import the Outlook object library in the invoke code in order to have access to the specific objects (emails etc) and their properties.

I know that in VBA I have to manually check the reference to the specific library I want to use the object from but in UIPath invoke code I have no idea how this is achieved.

Thanks in advance for your help