# Import ms outlook object library in invoke code

**URL:** <https://forum.uipath.com/t/import-ms-outlook-object-library-in-invoke-code/33264>\
**Category:** Off-Topic Discussions\
**Tags:** mail, system, activities\
**Created:** [May 18, 2018, 10:31am UTC](https://forum.uipath.com/t/import-ms-outlook-object-library-in-invoke-code/33264 "2018-05-18T10:31:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neo\_phil](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@neo\_phil](https://forum.uipath.com/u/neo_phil)\
**Post date:** [May 18, 2018, 10:31am UTC](https://forum.uipath.com/t/import-ms-outlook-object-library-in-invoke-code/33264/1 "2018-05-18T10:31:02Z")

</div>

Hello,

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](https://forum.uipath.com/t/send-outlook-email-one-account-but-additional-mailboxes/30596))

The problem is that I’m 100% new at [VB.net](http://VB.net) (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

BR

Philippe

---

<div class="post-metadata">

**Author:** ![StrawHat1339](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/strawhat1339/32/512789_2.png) [@StrawHat1339](https://forum.uipath.com/u/StrawHat1339)\
**Post date:** [June 13, 2019, 3:46pm UTC](https://forum.uipath.com/t/import-ms-outlook-object-library-in-invoke-code/33264/2 "2019-06-13T15:46:51Z")

</div>

I have the same question with you. Hope somebody will give us some hints for this topic…
