activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 21, 2024

Google Workspace 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.

Overloads

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.

Google Workspace services APIs

The Google Workspace APIs complement the capabilities of the Google Workspace activity package, allowing you to have a full coding experience. This approach encourages custom actions, and supports reusability. The APIs cover the Google Calendar, Drive and Drive Labels, Gmail, and Sheets services.

Using APIs

To use the Google APIs, you must first call the connection established in Integration Service. Then you call the desired service, for example, Drive (var service = google.Drive(connections.Drive.<connectionID>), and add the API (var service = google.Drive.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 Google service.
  4. Call the desired APIs on the connection that you previously selected.

Examples

See the Google Sheets APIs, Gmail APIs, and Google Drive APIs overview pages to check out samples of working with coded workflows.

  • Overloads
  • Google Workspace services APIs
  • Using APIs
  • Examples

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.