Productivity Activities
Last updated Jun 3, 2024

Microsoft 365 APIs

APIs allow you to access and interact with the services offered in the Manage Packages menu. You can use these APIs when you design coded automations. Visit Coded Automations to learn about coded automations and how to design them using APIs.
Note: Using Go to Definition (F12) allows you to access the definition of UiPath APIs for a certain service. We recommend relying only on the directly exposed APIs when you implement coded automations. Other APIs that are not directly exposed with a service are subject to change without prior notification.


APIs often have overloads, which means they provide multiple versions of the same method with different parameter options. Overloads allow you to customize the behavior of the API based on your specific requirements. For example, a UI Automation API may have an overload that accepts a timeout parameter to specify the maximum time to wait for a UI element to appear before ending execution.

By using the APIs with their respective overloads, you can easily achieve your desired automation logic and behavior.

Microsoft 365 services APIs

The Microsoft 365 APIs complement the capabilities of the Microsoft 365 activitys package, allowing you to have a full coding experience. This approach encourages custom actions, and supports reusability. The APIs cover the Microsoft Calendar, OneDrive, SharePoint, Outlook, and Excel.

Using APIs

To use the Microsoft 365 APIs, you must first call the connection established in Integration Service. Then you call the desired service, for example, OneDrive (var service = OneDrive(connections.OneDrive.<connectionID>), and add the API (var service = Office365.OneDrive.CopyFile).
  1. Download the activity package.
  2. Create a Coded Workflow.
  3. Call the connections service to access your Integration Service connection, then call the desired Microsoft service.
  4. Call the desired APIs on the connection that you previously selected.
  • Overloads
  • Microsoft 365 services APIs
  • Using APIs

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.