Seems like you should just use the Office 365 activities that come from UiPath rather than reinventing the wheel.